/* =========================
   GLOBAL
========================= */

:root {
  --blue: rgba(53, 64, 92, 1);
  --blue-dark: #31395a;
  --olive: rgba(135, 139, 48, 1);
  --olive-soft: #b3bb58;
  --text: #26324a;
  --muted: #5f6882;
  --white: #ffffff;
  --line: rgba(63, 73, 108, 0.10);
  --shadow-xl: 0 28px 70px rgba(42, 52, 82, 0.18);
  --shadow-lg: 0 18px 42px rgba(42, 52, 82, 0.14);
  --shadow-md: 0 10px 28px rgba(42, 52, 82, 0.10);
  --radius-xxl: 34px;
  --radius-xl: 26px;
  --radius-lg: 20px;
  --max-width: 1180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  min-height: 100%;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

body {
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  font-family: "Inter Tight", sans-serif !important;
  font-size: 16px;
  letter-spacing: 0.3px;
  color: var(--text);
  background: linear-gradient(180deg, #f0f2f5 0%, #f7f8fa 16%, #fbfbfc 100%);
}

a {
  text-decoration: none;
  transition: all 0.25s ease;
}

.scrollbody {
  overflow: hidden !important;
}

/* =========================
   NAVBAR
========================= */

#navbar-container {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  padding: 18px 18px 0 18px;
  background: transparent;
}

#navbar-content {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  min-height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.2rem;
  border-radius: 999px;
  background-color: rgba(53, 64, 92, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 28px rgba(24, 31, 53, 0.18);
}

#logo {
  display: flex;
  white-space: nowrap;
  font-family: "Inter Tight", sans-serif;
  color: white;
  font-size: 20px;
  font-weight: 700;
}

/* Top navigation */
#navbartop {
  display: none;
}

#navbartop > ul {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

#navbartop > ul > li > a {
  color: white;
  font-size: 1rem;
  font-weight: 600;
}

/* Hamburger */
#hamburger {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  z-index: 8888;
}

.bar1,
.bar2,
.bar3 {
  width: 32px;
  height: 4px;
  background-color: white;
  margin: 3px 0;
  transition: 0.5s;
  border-radius: 10px;
}

.change .bar1 {
  transform: rotate(45deg) translate(7px, 7px);
}

.change .bar2 {
  opacity: 0;
}

.change .bar3 {
  transform: rotate(-45deg) translate(6px, -7px);
}

/* Fullscreen nav */
#navbarfull {
  width: 100%;
  height: 100%;
  position: fixed;
  inset: 0;
  z-index: 8888;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background-color: rgba(53, 64, 92, 1);
  color: white;
  visibility: hidden;
  opacity: 0;
}

#navbarfull > ul > li {
  list-style: none;
  font-size: 1.5rem;
}

#navbarfull > ul > li > a {
  display: block;
  padding: 8px;
  margin: 8px;
  color: white;
  text-align: center;
}

.show {
  opacity: 1 !important;
  visibility: visible !important;
  transition: 0.5s;
}

/* =========================
   HERO / STARTPAGE
========================= */

#startpage {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(53, 64, 92, 0.58) 0%, rgba(53, 64, 92, 0.22) 38%, rgba(53, 64, 92, 0.68) 100%),
    url("../img/grußwort.jpg") center 12% / cover no-repeat;
}

#startpage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(15, 20, 37, 0.06), rgba(15, 20, 37, 0.18));
}

#startpage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, rgba(53, 64, 92, 0), rgba(53, 64, 92, 1));
  pointer-events: none;
}

.hero-accent-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 10px;
  background: linear-gradient(90deg, var(--olive), var(--olive-soft));
  z-index: 2;
}

.startpage-container {
  width: 100%;
  min-height: 100vh;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 110px 24px 90px 24px;
  position: relative;
  z-index: 2;
}

#startpage-text {
  width: min(100%, 420px);
  padding: 24px 24px 22px;
  margin-left: 8px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-xl);
  color: white;
  height: auto;
  max-height: none;
  overflow: visible;
  position: relative;
}

#startpage-text::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 42%);
  pointer-events: none;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.96);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: fit-content;
  position: relative;
  z-index: 1;
}

.hero-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--olive-soft);
  box-shadow: 0 0 14px rgba(179, 187, 88, 0.9);
}

.hero-title-small {
  position: relative;
  z-index: 1;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.86);
  margin-bottom: 8px;
}

.hero-name {
  position: relative;
  z-index: 1;
  font-size: clamp(2.4rem, 4.6vw, 4.2rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 8px 18px rgba(20, 25, 40, 0.18);
}

.hero-slogan {
  display: inline-block;
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(135, 139, 48, 0.22);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  color: white;
}

.hero-slogan span {
  font-weight: 800;
}

.hero-note {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.96);
  position: relative;
  z-index: 1;
  max-width: 100%;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  position: relative;
  z-index: 1;
}

.hero-button,
.hero-button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.94rem;
}

.hero-button {
  color: #fff;
  background: linear-gradient(135deg, var(--olive), var(--olive-soft));
  box-shadow: 0 12px 28px rgba(142, 150, 40, 0.28);
}

.hero-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(142, 150, 40, 0.34);
}

.hero-button-secondary {
  color: #fff;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  backdrop-filter: blur(10px);
}

.hero-button-secondary:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-2px);
}

/* =========================
   GRUSSWORT
========================= */

#grußwort {
  width: 100%;
  background-color: var(--blue);
  padding: 3rem 1.5rem;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#grußwort-content {
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}

#grußwort-content > div:first-child {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 28px;
  padding: 34px;
  color: var(--text);
  box-shadow: var(--shadow-md);
}

#grußwort-titel {
  font-size: 42px;
  font-weight: 800;
  padding: 0 0 1.2rem 0;
  color: var(--blue-dark);
  line-height: 1.02;
}

#grußwort-bild {
  padding: 0;
}

#grußwort-bild > img {
  width: 100%;
  border-radius: 28px;
  box-shadow: var(--shadow-xl);
  display: block;
}

#grußwort-text {
  color: var(--muted);
  line-height: 1.85;
}

#grußwort-text > span {
  font-family: 'Allura', cursive;
  font-size: 2.2em;
  font-weight: normal;
  color: var(--blue);
}

.personal-line {
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(135, 139, 48, 0.12), rgba(53, 64, 92, 0.06));
  color: var(--blue-dark);
  font-weight: 700;
  line-height: 1.6;
}

/* =========================
   HIGHLIGHT / INFO SECTIONS
========================= */

#balken {
  width: 100%;
  height: 14px;
  background-color: var(--olive);
}

.section-highlights,
.uebergang-box,
#kontakt-content,
#kartecontent {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.section-highlights {
  width: calc(100% - 3rem);
  max-width: var(--max-width);
  margin: 2rem auto;
  border-radius: var(--radius-xxl);
  padding: 30px 28px;
}

.section-highlights-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  color: var(--blue-dark);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}

.section-highlights p {
  color: var(--muted);
  line-height: 1.8;
}

.section-highlights ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.section-highlights li {
  list-style: none;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,247,250,1));
  border: 1px solid rgba(63,73,108,0.08);
  box-shadow: 0 8px 18px rgba(42,52,82,0.06);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
}

.section-highlights strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue-dark);
  font-size: 1.08rem;
}

/* =========================
   ÜBERGANGSPHASE
========================= */

#uebergangsphase {
  width: 100%;
  padding: 3rem 1.5rem;
}

#uebergangsphase-content {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

.uebergang-box {
  border-radius: var(--radius-xxl);
  padding: 36px 32px;
}

.uebergang-box h2,
.uebergang-box h3 {
  margin: 0 0 14px 0;
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  line-height: 1.10;
  letter-spacing: -0.03em;
  color: var(--blue-dark);
}

.uebergang-box p {
  font-size: 1.04rem;
  line-height: 1.9;
  color: var(--muted);
}

.uebergang-box:first-child {
  border-top: 5px solid var(--olive);
}

.uebergang-box:last-child {
  border-top: 5px solid var(--blue);
}

/* =========================
   KONTAKT
========================= */

#kontakt {
  width: 100%;
  padding: 3rem 1.5rem;
  background-color: var(--blue);
  color: white;
  display: flex;
  justify-content: center;
}

#kontakt-content {
  width: 100%;
  max-width: 700px;
  border-radius: var(--radius-xxl);
  padding: 42px 36px;
}

#kontakt-titel {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  color: var(--blue-dark);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}

#kontakt-text {
  color: var(--muted);
  line-height: 1.8;
}

#kontakt-daten {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin: 12px 0;
  padding: 13px 18px;
  border-radius: 999px;
  background: rgba(63, 73, 108, 0.05);
  font-size: 1rem;
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(63, 73, 108, 0.05);
}

#kontakt-daten > a {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

/* =========================
   ANLIEGEN / FORMULAR
========================= */

#kartecontainer {
  width: 100%;
  padding: 3rem 1.5rem;
  display: flex;
  justify-content: center;
}

#kartecontent {
  width: 100%;
  max-width: 900px;
  border-radius: var(--radius-xxl);
  padding: 42px 36px;
}

#kartetitel {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  color: var(--blue-dark);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
}

#karte-text {
  color: var(--muted);
  line-height: 1.8;
}

#formkarte {
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--blue);
  margin-top: 20px;
}

#formkarte > label {
  font-weight: 700;
}

#name,
#message {
  padding: 14px 16px;
  color: var(--blue);
  border-radius: 15px;
  border: 1px solid rgba(53, 64, 92, 0.3);
  font-family: "Inter Tight", sans-serif;
  font-size: 1rem;
}

#message {
  min-height: 180px;
  resize: vertical;
}

#formbutton {
  padding: 1rem;
  color: white;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--blue), var(--olive));
  border-radius: 15px;
  border: none;
  width: fit-content;
}

/* =========================
   FOOTER
========================= */

#footer {
  width: 100%;
  min-height: 120px;
  background-color: var(--blue);
}

#footer > ul {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  list-style: none;
}

#footer > ul > li {
  font-size: 1rem;
  padding: 0.4rem;
}

#footer > ul > li > a {
  color: white;
}

/* =========================
   MODALS
========================= */

#modalimpressum,
#modaldsgvo {
  display: none;
  position: fixed;
  inset: 0;
  background-color: white;
  overflow: auto;
  z-index: 2000;
}

.modaltext {
  margin: 1rem;
  font-size: 1rem;
  word-break: break-word;
  color: var(--blue);
  display: flex;
  flex-direction: column;
  min-height: 80%;
  line-height: 1.7;
}

#modalimpressum > i,
#modaldsgvo > i {
  float: right;
  font-size: 1.5rem;
  color: var(--blue);
  cursor: pointer;
}

.closemodal {
  position: fixed;
  top: 2%;
  right: 2%;
}

.showmodal {
  display: block !important;
}

/* =========================
   IMAGE MODAL
========================= */

#imageModal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
}

#modalImg {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

/* =========================
   STATUS MSG
========================= */

.msg {
  margin-top: 15px;
  padding: 10px;
  border-radius: 4px;
  transition: opacity 0.5s ease;
}

.success {
  background: #e0ffe0;
  border: 1px solid #0c0;
}

.error {
  background: #ffe0e0;
  border: 1px solid #c00;
}

/* =========================
   RESPONSIVE
========================= */

@media (min-width: 768px) {
  #grußwort-bild > img {
    width: 100%;
  }
}

@media (min-width: 1024px) {
  #navbartop {
    display: flex;
  }

  #hamburger {
    display: none;
  }

  #footer > ul {
    flex-direction: row;
  }
}

@media (max-width: 980px) {
  #grußwort-content,
  #uebergangsphase-content,
  .section-highlights ul {
    grid-template-columns: 1fr;
  }

  #navbartop {
    display: none;
  }

  #hamburger {
    display: flex;
  }

  #startpage {
    background:
      linear-gradient(90deg, rgba(53, 64, 92, 0.60) 0%, rgba(53, 64, 92, 0.26) 40%, rgba(53, 64, 92, 0.72) 100%),
      url("../img/grußwort.jpg") center 10% / cover no-repeat;
  }

  #startpage-text {
    max-width: 410px;
  }
}

@media (max-width: 680px) {
  #navbar-container {
    padding: 12px 12px 0 12px;
  }

  #navbar-content {
    padding: 12px 16px;
    border-radius: 22px;
  }

  #logo {
    font-size: 1rem;
  }

  #startpage {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(53, 64, 92, 0.62) 0%, rgba(53, 64, 92, 0.40) 100%),
      url("../img/grußwort.jpg") center 8% / cover no-repeat;
  }

  .startpage-container {
    min-height: auto;
    align-items: flex-start;
    padding: 96px 14px 34px 14px;
  }

  #startpage-text {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 18px 18px 20px;
    border-radius: 22px;
  }

  .hero-kicker {
    margin-bottom: 10px;
    font-size: 0.72rem;
    padding: 7px 10px;
  }

  .hero-title-small {
    font-size: 0.72rem;
    margin-bottom: 6px;
  }

  .hero-name {
    font-size: clamp(2rem, 9vw, 3rem);
    line-height: 0.95;
    margin-bottom: 10px;
  }

  .hero-slogan {
    font-size: 0.84rem;
    line-height: 1.3;
    margin-bottom: 14px;
    padding: 7px 12px;
  }

  .hero-note {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 16px;
  }

  .hero-button,
  .hero-button-secondary {
    width: 100%;
    padding: 11px 16px;
    font-size: 0.9rem;
  }

  #grußwort,
  #uebergangsphase,
  #kontakt,
  #kartecontainer {
    padding: 52px 14px;
  }

  #grußwort-content > div:first-child,
  .uebergang-box,
  #kontakt-content,
  #kartecontent,
  .section-highlights {
    padding: 22px 18px;
    border-radius: 20px;
  }

  #grußwort-bild > img {
    min-height: 300px;
    border-radius: 20px;
    object-fit: cover;
  }

  #formbutton,
  #kontakt-daten {
    width: 100%;
  }

  #footer > ul {
    flex-direction: column;
  }
}