/*
Theme Name: RW Digital Theme
Author: RW Digital
Description: Ein minimalistisches WordPress-Theme mit Header, Menü, Landing Page, Content Page und Footer.
Version: 1.4
Text Domain: rwdigital-theme
*/

/* ---------------- Fonts ---------------- */

@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('assets/fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------------- Farbvariablen ---------------- */
:root {
  color-scheme: light;

  /* Primary Colors */
  --primary: #2C70A3;
  --primary-light: #6B8CA4;
  /* minimal harmonischer Graustich */
  --primary-dark: #1F4E6E;
  /* minimal heller für bessere Lesbarkeit auf dunkel */
  --primary-darker: #153951;
  /* bleibt kräftig für Footer / Header */

  /* Accent Colors */
  --accent: #FF6F61;
  --accent-light: #FF9883;
  /* etwas runderer Übergang zum Hintergrund */
  --accent-dark: #C74638;

  /* Neutrals */
  --background: #F5F7FA;
  --text: #1C1C1C;
  --text-light: #FFFFFF;
}

/* Light-Grey Theme */
:root[data-theme="light-grey"] {

  --primary: #6B7680;
  --primary-light: #9AA3AB;
  --primary-dark: #4F5860;
  --primary-darker: #394047;

  --accent: #E5533D;
  --accent-light: #F28B7B;
  --accent-dark: #B84433;

  --background: #F2F4F6;
  --text: #22272C;
  --text-light: #FFFFFF;
}


/* ---------------- Grundlegende Styles ---------------- */
html,
body {
  color-scheme: light;
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: visible !important;
  forced-color-adjust: none !important;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  padding: 0;
  background-color: var(--background);
  color: var(--text);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.image-border {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 5px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.image-border-100wp {
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ---------------- Globale Links ---------------- */
a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover,
a:focus {
  color: var(--accent);
  outline: none;
}

hr.accent-line {
  border-width: 1px;
  border-color: var(--accent-dark);
  margin: 30px 0;
}

/* ---------------- Header ---------------- */
header {
  position: relative;
  background: var(--primary-light);
  color: var(--text-light);
  z-index: 2000;
}

.site-header {
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  align-items: center;
}

.site-header>div {
  max-width: 1024px;
  margin: 0 auto;
  padding: 1rem 16px;
  display: flex;
  align-items: center;
  width: 100%;
}

.primary-navigation {
  flex: 1;
  display: flex;
  /*justify-content: center;*/
}

.header-navigation {
  display: flex;
  flex: 1;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.primary-navigation ul {
  display: flex;
  gap: 20px;
}

.site-logo {
  margin-right: 24px;
  flex-shrink: 0;
  padding-right: 40px;
}

header .site-logo img {
  width: auto;
  max-height: 60px;
}

.header-contact-button {
  display: inline-block;
  padding: 0.5em 1em;
  background-color: var(--primary);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 4px;
  border: none;
  font-weight: bold;
}

.header-contact-button:hover {
  background-color: var(--accent);
  color: var(--text-light);
}

.form-send-button {
  display: inline-block;
  padding: 0.5em 1em;
  background-color: var(--primary);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 4px;
  border: none;
  font-weight: bold;
}

.form-send-button:hover {
  background-color: var(--accent);
  color: var(--text-light);
}


/*
header a {
  color: var(--text);
}

header a:hover {
  color: var(--text-light);
}

*/

header h1 {
  margin: 0;
}

/* ---------------- Navigation ---------------- */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------------- Content ---------------- */
main {
  unicode-bidi: isolate;
  margin-bottom: 80px;
}

.content-area {
  max-width: 960px;
  width: 100%;
  margin: 3rem auto;
  box-sizing: border-box;
  line-height: 1.6;
}

/* ---------------- Landing Page Content Area ---------------- */
.content-area-landing {
  max-width: 1024px;
  width: 100%;
  margin: 3rem auto;
  /*padding: 0 2rem;  */
  padding: 5px;
  box-sizing: border-box;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .content-area-landing {
    max-width: 90%;
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  .content-area-landing {
    max-width: 95%;
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .content-area-landing {
    max-width: 100%;
    padding: 0 0.5rem;
  }
}

/* ---------------- Footer ---------------- */
footer {
  margin-top: auto;
}

.site-footer {
  position: relative;
  background-color: var(--primary-dark);
  color: var(--text-light);
  padding-top: 60px;
  padding-bottom: 1rem;
  background-position: left bottom;
  background-size: 800px 120%;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.footer-logo {
  position: absolute;
  top: -50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.footer-logo img {
  height: 100px;
  width: auto;
}

.footer-column {
  flex: 1 1 250px;
  padding: 0.25rem 0 0 0.5rem;
  align-self: flex-start;
  height: auto;
  min-height: 0;
}

.footer-column h3,
.footer-column h4 {
  color: var(--accent-light);
  margin-bottom: 0.8rem;
}

.footer-column p,
.footer-column a {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-column a:hover {
  color: var(--accent-light);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-bottom {
  text-align: center;
  margin: 1.5rem auto 0;
  padding: 1rem 0;
  font-size: 0.9rem;
  color: var(--text-light);
  max-width: 1200px;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
}

.footer-rechts {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
}

.footer-rechts a {
  color: var(--text-light);
  transition: color 0.2s ease-in-out;
}

.footer-rechts a:hover {
  color: var(--accent-light);
}

.footer-rechts a+a::before {
  content: "|";
  margin: 0 0.5rem;
  color: var(--text-light);
}

/* ---------------- Buttons ---------------- */
button {
  background-color: var(--accent);
  color: var(--text-light);
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: var(--accent-light);
}

button:active {
  background-color: var(--accent-dark);
}


button.main-nav-toggle:hover {
  background-color: inherit;
}

@media (min-width: 960px) {
  .site-header>div {
    max-width: 960px;
    margin: 0 auto;
  }
}


.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* optional: zentrieren */
  gap: 20px;
  /* Abstand zwischen Text und Button */
  position: relative;
  z-index: 2;
  color: var(--text-light);
  padding: 2rem;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin: 0;
}


.hero-content p {
  font-size: 2.0rem;
  /* margin-top: 1.0rem; */
}


/* ---------------- Desktop (>768px) ---------------- */
@media (min-width: 769px) {

  .menu-toggle {
    display: none;
  }

  header .site-logo img {
    max-height: 60px;
  }

  nav ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
  }

  nav ul li {
    position: relative;
  }

  nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
  }

  nav ul li a:hover {
    color: var(--primary-dark);
  }

  nav ul li a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-dark);
    transition: width 0.2s;
  }

  nav ul li a:hover::after,
  nav ul li.current-menu-item a::after {
    width: 100%;
  }

  .content-area {
    padding: 0 8rem;
  }

  .footer-bottom {
    border-top: 1px solid var(--primary-light);
  }
}

/* ---------------- Mobile (<769px) ---------------- */
@media (max-width: 768px) {

  header {
    display: flex;
    flex-direction: row;
    align-items: center;
  }

  .site-logo {
    margin-right: auto;
  }

  .site-footer {
    background-position: left bottom;
    background-size: 100% 80%;
  }

  header .site-logo img {
    max-height: 40px;
  }

  .header-contact-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: normal;
    line-height: 1;
    color: var(--text-light);
    background-color: var(--primary);
    margin-left: 0.5rem;
  }

  .header-navigation {
    display: flex;
    flex: 0 auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: unset;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2000;
    background: transparent;
    /* Hintergrund entfernt */
  }

  .main-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
  }

  .main-nav-toggle span {
    display: block;
    height: 4px;
    width: 100%;
    background-color: #d0d0d0;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }

  .main-nav-toggle.active-menu span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 6px);
  }

  .main-nav-toggle.active-menu span:nth-child(2) {
    opacity: 0;
  }

  .main-nav-toggle.active-menu span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -6px);
  }

  .primary-navigation {
    display: block;
    max-height: 0;
    overflow: hidden;
    width: 100%;
    background-color: var(--primary);
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: max-height 0.4s ease-in-out;
  }

  .primary-navigation.active {
    max-height: 999px;
    /* genug hoch, um beliebige Menüpunkte aufzunehmen */
  }

  .primary-navigation ul {
    flex-direction: column;
    gap: 0;
    text-align: center;
  }

  .primary-navigation ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .primary-navigation ul li a {
    display: block;
    padding: 1rem 2rem;
    color: var(--text-light);
  }

  .primary-navigation ul li a:hover {
    background-color: rgba(0, 0, 0, 0.05);
  }

  .content-area {
    padding: 0 2rem;
  }

  .footer-logo {
    left: 50%;
    transform: translateX(-50%);
    top: -35px;
  }


  .hero-content h1 {
    font-size: 1.6rem;
    margin: 0;
  }


  .hero-content p {
    font-size: 1.4rem;
    /* margin-top: 1.0rem; */
  }
}

/* ---------------- Veröffentlichungsdatum ---------------- */
.publish-date {
  font-size: 0.9em;
  color: #555;
  margin-top: 10px;
}

/* ---------------- Hero Section ---------------- */
.hero-section {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  /*background-image: var(--hero-bg);*/
  background:
    linear-gradient(rgba(8, 15, 31, 0.9),
      /* oben: Primary-Light transparenter */
      rgba(58, 140, 201, 0.8)
      /* unten: Primary-Light transparenter */
    ),
    var(--hero-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  inset: 0;
  /* top:0; right:0; bottom:0; left:0; */
  background-color: rgba(36, 36, 68, 0.22);
  z-index: 0;
}

#particles-js {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}



/* ---------------- Animations ---------------- */
@keyframes fade-in-down {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-down {
  animation: fade-in-down 1s ease-out forwards;
}

.animate-fade-in-up {
  animation: fade-in-up 0.5s ease-out 0.3s forwards;
  opacity: 0;
}

.semi-bg {
  background-color: rgba(255, 255, 255, 0.6);
  padding: 0.5rem 1rem;
  border-radius: 2px;
  display: inline-block;
  color: var(--text);
}

/* ---------------- Intro Text ---------------- */
.intro-text {
  font-size: 1.1rem;
  color: var(--text);
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.6;
}