
:root {
  --green-950: #123f2f;
  --green-900: #174c38;
  --green-800: #205b43;
  --green-700: #2b6b50;
  --green-100: #edf4ef;
  --cream: #f7f3e9;
  --cream-2: #fbfaf6;
  --gold: #b78d3d;
  --gold-soft: #d9c38e;
  --ink: #24302a;
  --muted: #647067;
  --line: rgba(25, 77, 56, .14);
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(27, 62, 45, .10);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream-2);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(251, 250, 246, .94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  width: 150px;
  height: 66px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.brand img {
  width: 100%;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: .95rem;
  font-weight: 600;
  color: var(--green-950);
}

.nav a {
  transition: opacity .2s ease, transform .2s ease;
}

.nav a:hover {
  opacity: .68;
}

.nav-cta {
  padding: 10px 16px;
  border: 1px solid var(--green-900);
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--green-950);
}

.hero {
  min-height: 760px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 85% 18%, rgba(202, 185, 114, .18), transparent 30%),
    linear-gradient(135deg, #fbfaf6 0%, #f2f0e6 100%);
  border-bottom: 1px solid var(--line);
}

.hero-inner,
.section,
.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 80px;
  align-items: center;
  padding: 90px 0 110px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #dfc98f;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--green-950);
  font-weight: 500;
  line-height: 1.08;
  margin-top: 0;
}

h1 {
  max-width: 660px;
  margin-bottom: 24px;
  font-size: clamp(3.5rem, 6vw, 6.5rem);
  letter-spacing: -.04em;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.35rem, 4vw, 4.25rem);
  letter-spacing: -.035em;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.65rem;
}

.hero-copy > p {
  max-width: 640px;
  margin: 0;
  color: #47534b;
  font-size: 1.16rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.button {
  min-height: 50px;
  padding: 13px 21px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--green-900);
  box-shadow: 0 12px 30px rgba(23, 76, 56, .18);
}

.button-secondary {
  border: 1px solid rgba(23, 76, 56, .25);
  background: rgba(255,255,255,.45);
  color: var(--green-950);
}

.hero-logo-card {
  padding: 28px;
  border-radius: 36px;
  background: rgba(255,255,255,.70);
  box-shadow: var(--shadow);
  border: 1px solid rgba(183, 141, 61, .16);
}

.hero-logo-card img {
  width: 100%;
  height: auto;
}

.section {
  padding: 110px 0;
}

.section-narrow {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.lead {
  margin: 0 auto;
  max-width: 760px;
  font-size: 1.18rem;
  color: #556258;
}

.services {
  border-top: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: 1fr .72fr;
  align-items: end;
  gap: 80px;
  margin-bottom: 50px;
}

.section-head > p {
  margin: 0 0 12px;
  color: var(--muted);
  max-width: 470px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  min-height: 300px;
  padding: 34px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 12px 34px rgba(28, 64, 47, .05);
}

.service-card.wide {
  grid-column: 1 / -1;
}

.service-number {
  position: absolute;
  right: 26px;
  top: 22px;
  color: rgba(23, 76, 56, .16);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
}

.service-card p {
  margin: 0 0 16px;
  max-width: 590px;
  color: var(--muted);
}

.service-card ul {
  padding-left: 20px;
  margin: 0;
}

.service-card li {
  margin: 6px 0;
}

.about {
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  align-items: center;
}

.portrait-placeholder {
  min-height: 620px;
  border-radius: 34px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(25, 77, 56, .95), rgba(47, 111, 83, .88)),
    var(--green-900);
  box-shadow: var(--shadow);
  border: 1px solid rgba(183, 141, 61, .24);
}

.portrait-inner {
  width: min(78%, 380px);
  padding: 40px 30px;
  text-align: center;
  color: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 28px;
  background: rgba(255,255,255,.06);
}

.portrait-inner span {
  display: block;
  margin-bottom: 8px;
  color: #e6d49e;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.portrait-inner strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
  font-weight: 500;
}

.portrait-inner small {
  display: block;
  margin-top: 12px;
  color: rgba(255,255,255,.65);
}

.about-copy {
  max-width: 620px;
}

.about-copy .role {
  margin-top: -10px;
  margin-bottom: 26px;
  color: var(--gold);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .82rem;
}

.about-copy p {
  color: var(--muted);
}

.contact {
  padding-top: 30px;
}

.contact-card {
  padding: 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 60px;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--green-950), var(--green-800));
  color: var(--white);
  box-shadow: var(--shadow);
}

.contact-card h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.contact-card p {
  max-width: 620px;
  margin: 0;
  color: rgba(255,255,255,.72);
}

.button-light {
  flex: 0 0 auto;
  color: var(--green-950);
  background: var(--cream);
}

footer {
  margin-top: 90px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  min-height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: .9rem;
}

.footer-inner div {
  display: flex;
  gap: 20px;
}

.footer-inner a:hover {
  color: var(--green-950);
}

@media (max-width: 900px) {
  .nav-wrap {
    min-height: 94px;
  }

  .brand {
    width: 76px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 96px;
    padding: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream-2);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav-cta {
    text-align: center;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 45px;
    padding: 75px 0 85px;
  }

  .hero-logo-card {
    max-width: 600px;
  }

  .section-head,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card.wide {
    grid-column: auto;
  }

  .portrait-placeholder {
    min-height: 500px;
  }

  .contact-card {
    padding: 45px;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .nav-wrap,
  .hero-inner,
  .section,
  .footer-inner {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .section {
    padding: 78px 0;
  }

  .hero-logo-card {
    padding: 16px;
    border-radius: 24px;
  }

  .service-card {
    padding: 28px 24px;
    border-radius: 22px;
  }

  .portrait-placeholder {
    min-height: 430px;
    border-radius: 24px;
  }

  .contact-card {
    padding: 34px 26px;
    border-radius: 24px;
  }

  .footer-inner {
    padding: 24px 0;
    min-height: auto;
    align-items: flex-start;
    flex-direction: column;
  }
}




/* Header logo fix: show the original logo completely, without clipping */
.site-header .nav-wrap {
  min-height: 126px !important;
}

.site-header .brand {
  width: 108px !important;
  height: 108px !important;
  min-width: 108px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
}

.site-header .brand img {
  display: block !important;
  width: 108px !important;
  height: 108px !important;
  max-width: none !important;
  object-fit: contain !important;
  object-position: center !important;
}

@media (max-width: 900px) {
  .site-header .nav-wrap {
    min-height: 104px !important;
  }

  .site-header .brand {
    width: 84px !important;
    height: 84px !important;
    min-width: 84px !important;
  }

  .site-header .brand img {
    width: 84px !important;
    height: 84px !important;
  }

  .nav {
    top: 106px !important;
  }
}



.service-card h3 {
    color: #123f2f !important;
}



.about-copy .qualification-block {
  margin-top: 30px;
}

.about-copy .qualification-block h3 {
  margin-bottom: 20px;
  color: #123f2f;
  font-size: 1.35rem;
}

.qualification-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.qualification-list li {
  position: relative;
  margin: 12px 0;
  padding-left: 28px;
  color: #47534b;
  font-size: 1.04rem;
}

.qualification-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: #123f2f;
  box-shadow: none;
}



.portrait-photo-wrap {
  display: block;
  position: relative;
  padding: 0;
  background: #f4f1e8;
}

.portrait-photo {
  width: 100%;
  height: 100%;
  min-height: 620px;
  display: block;
  object-fit: cover;
  object-position: center center;
}

@media (max-width: 900px) {
  .portrait-photo {
    min-height: 500px;
  }
}

@media (max-width: 600px) {
  .portrait-photo {
    min-height: 430px;
  }
}



.contact-details {
  margin-top: 26px;
}

.contact-detail {
  margin-top: 18px;
}

.contact-label {
  display: block;
  margin-bottom: 6px;
  color: #dfc98f;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-detail p {
  margin: 0;
  color: rgba(255,255,255,.88);
  font-size: 1.05rem;
  line-height: 1.55;
}



.contact-detail a {
  color: inherit;
  text-decoration: none;
}

.contact-detail a:hover {
  text-decoration: underline;
}



.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 0 0 auto;
}

.button-outline-light {
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.55);
  background: transparent;
}

.button-outline-light:hover {
  background: rgba(255,255,255,.08);
}

@media (max-width: 900px) {
  .contact-actions {
    width: 100%;
  }

  .contact-actions .button {
    width: 100%;
  }
}



.legal-section {
  padding-top: 40px;
}

.legal-card {
  padding: 56px;
  background: #ffffff;
  border: 1px solid rgba(25,77,56,.14);
  border-radius: 30px;
  box-shadow: 0 14px 40px rgba(28,64,47,.05);
}

.legal-card h2 {
  margin-bottom: 38px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px 48px;
}

.legal-block h3 {
  margin-bottom: 12px;
  color: #123f2f;
  font-size: 1.25rem;
}

.legal-block p {
  margin: 0;
  color: #556258;
}

.legal-block a {
  color: #123f2f;
}

.legal-block a:hover {
  text-decoration: underline;
}

.legal-wide {
  grid-column: 1 / -1;
}

.legal-placeholder {
  display: inline-block;
  padding: 12px 16px;
  border: 1px dashed rgba(183,141,61,.65);
  border-radius: 12px;
  background: #fbf7ec;
  color: #6a572d !important;
  font-weight: 700;
}

.legal-note {
  margin-top: 10px !important;
  max-width: 760px;
  font-size: .92rem;
  color: #737c75 !important;
}

@media (max-width: 760px) {
  .legal-card {
    padding: 34px 26px;
    border-radius: 24px;
  }

  .legal-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .legal-wide {
    grid-column: auto;
  }
}



.privacy-card {
  max-width: 100%;
}

.legal-status {
  margin: -24px 0 38px;
  color: #737c75;
  font-size: .92rem;
}

.privacy-content {
  display: grid;
  gap: 34px;
}

.privacy-content .legal-block {
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(25,77,56,.10);
}

.privacy-content .legal-block:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.privacy-content .legal-block h3 {
  margin-bottom: 14px;
}

.privacy-content .legal-block p + p {
  margin-top: 14px;
}

.legal-address {
  margin-top: 14px !important;
}

.privacy-list {
  margin: 14px 0 0;
  padding-left: 22px;
  color: #556258;
}

.privacy-list li {
  margin: 8px 0;
}

.privacy-placeholder {
  margin-top: 20px;
  padding: 16px 18px;
  border: 1px dashed rgba(183,141,61,.72);
  border-radius: 14px;
  background: #fbf7ec;
  color: #6a572d;
  line-height: 1.65;
}

.privacy-open-items {
  padding: 26px !important;
  border: 1px solid rgba(183,141,61,.28) !important;
  border-radius: 20px;
  background: #fcfaf3;
}

@media (max-width: 600px) {
  .legal-status {
    margin-top: -12px;
  }

  .privacy-content {
    gap: 28px;
  }

  .privacy-open-items {
    padding: 20px !important;
  }
}



/* Ein-Datei-Mehrseitenmodus */
.legal-view {
  display: none;
}

body.show-impressum #home-view,
body.show-datenschutz #home-view {
  display: none;
}

body.show-impressum #impressum {
  display: block;
}

body.show-datenschutz #datenschutz {
  display: block;
}

body.show-impressum #datenschutz,
body.show-datenschutz #impressum {
  display: none;
}

.legal-back-link {
  display: inline-flex;
  margin-bottom: 28px;
  color: #123f2f;
  font-weight: 700;
}

.legal-back-link:hover {
  text-decoration: underline;
}

body.show-impressum .site-header .nav,
body.show-datenschutz .site-header .nav {
  display: none;
}

@media (max-width: 900px) {
  body.show-impressum .menu-toggle,
  body.show-datenschutz .menu-toggle {
    display: none;
  }
}



/* ============================================================
   MOBILE / INTERAKTIONEN – OHNE JAVASCRIPT
   ============================================================ */

/* Die alte JS-Menülogik wird nicht mehr benötigt. */
.mobile-menu-native {
  display: none;
  position: relative;
  z-index: 60;
}

.mobile-menu-native > summary {
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  list-style: none;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-native > summary::-webkit-details-marker {
  display: none;
}

.mobile-menu-native > summary::marker {
  display: none;
  content: "";
}

.mobile-menu-native > summary span {
  width: 24px;
  height: 2px;
  display: block;
  border-radius: 2px;
  background: #123f2f;
}

.mobile-menu-panel {
  position: absolute;
  top: 58px;
  right: 0;
  width: min(260px, calc(100vw - 40px));
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fbfaf6;
  border: 1px solid rgba(25,77,56,.14);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(27,62,45,.14);
}

.mobile-menu-panel a {
  padding: 13px 14px;
  border-radius: 12px;
  color: #123f2f;
  font-weight: 700;
}

.mobile-menu-panel a:active {
  background: #edf4ef;
}

/* Buttons auf Touch-Geräten eindeutig klickbar halten. */
.button,
.nav a,
.footer-inner a,
.mobile-menu-panel a,
.contact-detail a,
.legal-back-link {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(18,63,47,.08);
}

/* Rechtstexte: CSS-only. Kein JavaScript erforderlich. */
.legal-view {
  display: none !important;
}

#impressum:target,
#datenschutz:target {
  display: block !important;
}

/* Auf modernen Browsern wirkt der Rechtstext wie eine eigene Seite. */
body:has(#impressum:target) #home-view,
body:has(#datenschutz:target) #home-view {
  display: none;
}

body:has(#impressum:target) #datenschutz,
body:has(#datenschutz:target) #impressum {
  display: none !important;
}

body:has(#impressum:target) #impressum,
body:has(#datenschutz:target) #datenschutz {
  display: block !important;
}

body:has(#impressum:target) .site-header .nav,
body:has(#datenschutz:target) .site-header .nav,
body:has(#impressum:target) .mobile-menu-native,
body:has(#datenschutz:target) .mobile-menu-native {
  display: none !important;
}

/* Mobile Leistungskarten: Nummern bekommen einen festen eigenen Bereich. */
@media (max-width: 600px) {
  .service-card {
    padding: 28px 24px 30px;
  }

  .service-card h3 {
    padding-right: 82px;
    margin-bottom: 16px;
  }

  .service-number {
    top: 24px;
    right: 24px;
    font-size: 2.35rem;
    line-height: 1;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }
}

@media (max-width: 900px) {
  /* Das bisherige JS-Menü ausblenden, das native Menü verwenden. */
  .site-header .nav {
    display: none !important;
  }

  .mobile-menu-native {
    display: block;
  }
}



/* ============================================================
   MOBILE-KORREKTUR V18
   ============================================================ */

@media (max-width: 600px) {
  .service-card {
    padding: 24px 24px 30px !important;
  }

  .service-number {
    position: static !important;
    display: block !important;
    width: 100%;
    margin: 0 0 12px 0 !important;
    text-align: right;
    font-size: 2.15rem !important;
    line-height: 1 !important;
    color: rgba(23, 76, 56, .14) !important;
  }

  .service-card h3 {
    padding-right: 0 !important;
    margin: 0 0 16px 0 !important;
    max-width: 100%;
    overflow-wrap: anywhere;
    hyphens: auto;
  }

  .service-card p,
  .service-card ul {
    max-width: 100%;
  }

  .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 12px !important;
  }

  .hero-actions .button {
    width: 100% !important;
  }
}


/* Produktions-Finalisierung */
html { scroll-padding-top: 130px; }

@media (max-width: 600px) {
  .service-number {
    position: static !important;
    display: block !important;
    width: 100%;
    margin: 0 0 12px 0 !important;
    text-align: right;
  }

  .service-card h3 {
    padding-right: 0 !important;
    overflow-wrap: anywhere;
    hyphens: auto;
  }
}

.legal-page-main {
  min-height: calc(100vh - 220px);
}

.legal-page-main .legal-section {
  padding-top: 90px;
}

.legal-page-back {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--green-950);
  font-weight: 700;
}

.legal-page-back:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .legal-page-main .legal-section {
    padding-top: 60px;
  }
}


/* ============================================================
   FIX: Rechtliche Unterseiten sichtbar darstellen
   ============================================================ */
.legal-page-main .legal-view {
  display: block !important;
}

.legal-page-main#home-view {
  display: block !important;
}
