:root {
  --ink: #161513;
  --muted: #68635c;
  --paper: #f7f4ef;
  --surface: #ffffff;
  --line: rgba(22, 21, 19, 0.14);
  --green: #184b35;
  --clay: #b56f4f;
  --gold: #d6b36d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
  padding: 18px clamp(20px, 4vw, 64px);
  background: #161513;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}

.brand img {
  width: min(306px, 58vw);
  height: auto;
  border-radius: 2px;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

nav a {
  padding-block: 10px;
  border-bottom: 2px solid transparent;
}

nav a:hover,
nav a.active {
  border-color: white;
}

nav .nav-cta {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border-bottom: 0;
  background: var(--gold);
  color: #17120a;
  font-weight: 900;
}

nav .nav-cta:hover,
nav .nav-cta.active {
  border-bottom: 0;
  background: #e6c47f;
  color: #17120a;
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 92px);
  overflow: hidden;
  background: var(--ink);
}

.hero-image,
.hero-shade {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(10, 10, 8, 0.78), rgba(10, 10, 8, 0.34) 52%, rgba(10, 10, 8, 0.1)),
    linear-gradient(0deg, rgba(10, 10, 8, 0.16), rgba(10, 10, 8, 0.16));
}

.hero-content {
  grid-area: 1 / 1;
  align-self: center;
  width: min(760px, calc(100% - 40px));
  margin-left: clamp(20px, 6vw, 96px);
  padding-block: 72px;
  color: white;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0c987;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(42px, 6vw, 88px);
  font-weight: 800;
  line-height: 0.98;
}

h2 {
  max-width: 860px;
  margin-bottom: 0;
  font-size: clamp(32px, 4.4vw, 64px);
  font-weight: 790;
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.15;
}

.hero-content p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  background: var(--gold);
  color: #17120a;
  font-weight: 800;
  cursor: pointer;
}

.primary-action:hover {
  background: #e6c47f;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.secondary-action:hover {
  border-color: rgba(255, 255, 255, 0.56);
}

.cookie-banner {
  position: fixed;
  right: clamp(14px, 2vw, 24px);
  bottom: clamp(14px, 2vw, 24px);
  z-index: 80;
  width: min(420px, calc(100vw - 28px));
}

.cookie-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #161513;
  color: white;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.cookie-copy h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.cookie-copy p {
  max-width: none;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.65;
}

.cookie-copy a {
  color: var(--gold);
  font-weight: 800;
  border-bottom: 1px solid currentColor;
}

.cookie-options {
  display: grid;
  gap: 8px;
}

.cookie-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-weight: 700;
}

.cookie-option input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--gold);
}

.cookie-option small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.64);
  font-weight: 500;
  line-height: 1.45;
}

.cookie-option.is-disabled {
  opacity: 0.72;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: stretch;
  gap: 8px;
}

.cookie-actions .primary-action,
.cookie-actions .secondary-action {
  flex: 1 1 auto;
  min-height: 42px;
  padding: 10px 12px;
  font-size: 13px;
  transform: none;
}

.cookie-preferences-button {
  position: fixed;
  right: 0;
  bottom: 96px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  background: #161513;
  color: white;
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.24);
}

.section {
  padding: clamp(64px, 8vw, 120px) clamp(20px, 4vw, 64px);
}

.intro-section,
.full-band,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
}

.intro-section {
  border-bottom: 1px solid var(--line);
}

.intro-section p:last-child,
.full-band p,
.legal-content p,
.legal-content li {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.section-heading.split a {
  flex: 0 0 auto;
  padding-bottom: 8px;
  color: var(--green);
  font-weight: 800;
  border-bottom: 2px solid currentColor;
}

.services-section,
.detail-grid-section,
.contact-section,
.legal-content {
  background: var(--surface);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.service-tile {
  min-height: 112px;
  display: flex;
  align-items: end;
  padding: 22px;
  background: #f3f0e9;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-tile span {
  max-width: 100%;
  font-size: clamp(21px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.02;
}

.service-tile:hover {
  transform: translateY(-4px);
  background: #e9efe9;
  border-color: rgba(24, 75, 53, 0.36);
}

.project-section {
  background: #171513;
  color: white;
}

.project-section .eyebrow {
  color: #d6b36d;
}

.project-section h2 {
  color: white;
}

.project-grid,
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border-radius: 8px;
  background: #222;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease, filter 350ms ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.05) 60%);
}

.project-card div {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1;
}

.project-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.project-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.08);
}

.services-portfolio-section .section-heading.split > p {
  max-width: 460px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.advisor-section {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background: var(--surface);
}

.advisor-copy h2 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(34px, 4.5vw, 62px);
  line-height: 1;
}

.advisor-copy p {
  max-width: 780px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.75;
}

.advisor-copy strong {
  color: var(--green);
  font-size: 21px;
}

.advisor-photo {
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f5f2ec;
  align-self: stretch;
}

.advisor-photo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.process-step {
  min-height: 210px;
  padding: 24px;
  background: var(--paper);
}

.process-step span {
  display: block;
  margin-bottom: 34px;
  color: var(--clay);
  font-weight: 900;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.page-hero {
  --page-hero-image: url("public/assets/hero-leistungen.png");
  --page-hero-position: center;
  padding: clamp(72px, 10vw, 140px) clamp(20px, 4vw, 64px) clamp(56px, 8vw, 96px);
  min-height: clamp(360px, 48vw, 540px);
  background:
    linear-gradient(90deg, rgba(10, 10, 8, 0.76), rgba(10, 10, 8, 0.36) 55%, rgba(10, 10, 8, 0.12)),
    linear-gradient(0deg, rgba(10, 10, 8, 0.18), rgba(10, 10, 8, 0.18)),
    var(--page-hero-image) var(--page-hero-position) / cover;
  border-bottom: 1px solid var(--line);
}

.page-hero-leistungen {
  --page-hero-image: url("public/assets/hero-leistungen.png");
}

.page-hero-kostencheck {
  --page-hero-image: url("public/assets/hero-kostencheck.png");
  --page-hero-position: center;
}

.page-hero-kontakt {
  --page-hero-image: url("public/assets/hero-kontakt.png");
  --page-hero-position: center;
}

.page-hero-datenschutz {
  --page-hero-image: url("public/assets/hero-datenschutz.png");
}

.page-hero-impressum {
  --page-hero-image: url("public/assets/hero-impressum.png");
}

.page-hero .eyebrow {
  color: #f0c987;
}

.page-hero h1 {
  max-width: 940px;
  color: white;
}

.page-hero p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.detail-card {
  display: flex;
  flex-direction: column;
  overflow: visible;
  border-radius: 10px;
  background: transparent;
}

.detail-card img {
  width: 100%;
  height: 280px;
  flex: 0 0 280px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.detail-card > div {
  padding: 28px;
  background: white;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 18px 40px rgba(22, 21, 19, 0.08);
}

.detail-card h2 {
  margin-bottom: 14px;
  font-size: clamp(26px, 3vw, 40px);
}

.detail-card p {
  color: var(--muted);
  line-height: 1.75;
}

.detail-card details {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.detail-card summary {
  width: fit-content;
  padding-top: 18px;
  color: var(--green);
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.detail-card summary::-webkit-details-marker {
  display: none;
}

.detail-card summary::after {
  content: " +";
}

.detail-card details[open] summary::after {
  content: " -";
}

.detail-card details p {
  margin-top: 16px;
}

.full-band {
  background: #e9efe9;
}

.contact-direct h2 {
  margin-bottom: 24px;
  font-size: clamp(30px, 4vw, 54px);
}

address {
  margin-bottom: 28px;
  color: var(--muted);
  font-style: normal;
  line-height: 1.7;
}

.contact-direct a {
  display: block;
  width: fit-content;
  margin-top: 12px;
  color: var(--green);
  font-weight: 800;
  border-bottom: 2px solid currentColor;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

label {
  display: grid;
  gap: 8px;
  color: #393631;
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(22, 21, 19, 0.18);
  border-radius: 6px;
  background: white;
  color: var(--ink);
  font: inherit;
}

input {
  min-height: 50px;
  padding: 0 14px;
}

select {
  min-height: 50px;
  padding: 0 14px;
}

textarea {
  resize: vertical;
  padding: 14px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(214, 179, 109, 0.34);
  border-color: var(--green);
}

.form-success {
  display: none;
  padding: 16px;
  border: 1px solid rgba(24, 75, 53, 0.24);
  border-radius: 8px;
  background: #e9efe9;
  color: var(--green);
  font-weight: 800;
  line-height: 1.5;
}

.form-success.is-visible {
  display: block;
}

.cost-result {
  display: none;
  margin-top: 8px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(24, 75, 53, 0.18);
  border-radius: 8px;
  background: white;
  box-shadow: 0 18px 45px rgba(22, 21, 19, 0.08);
}

.cost-result.is-visible {
  display: grid;
  gap: 18px;
}

.cost-result h2 {
  margin: 0;
  color: var(--green);
  font-size: clamp(24px, 3vw, 34px);
}

.cost-result .eyebrow {
  margin: 0;
}

.cost-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cost-result-grid div {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 8px;
  background: #f5f2ec;
}

.cost-result-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cost-result-grid strong {
  color: var(--ink);
  font-size: 19px;
}

.cost-summary,
.cost-note {
  color: var(--muted);
  line-height: 1.65;
}

.cost-note {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.legal-content {
  max-width: 900px;
  margin-inline: auto;
}

.legal-content h2 {
  margin-top: 46px;
  margin-bottom: 16px;
  font-size: clamp(26px, 3vw, 38px);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin-top: 30px;
}

.legal-content a {
  color: var(--green);
  font-weight: 800;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, auto);
  gap: 32px;
  padding: 34px clamp(20px, 4vw, 64px);
  background: #2b2b2b;
  color: white;
}

.site-footer p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px 24px;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--gold);
}

@media (max-width: 900px) {
  .site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 0;
    padding: 14px 20px;
    gap: 12px 18px;
  }

  .brand img {
    width: min(244px, 62vw);
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .site-header.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .site-header.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  nav {
    grid-column: 1 / -1;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-header.has-menu nav {
    max-height: 0;
    overflow: hidden;
    border-top: 0 solid rgba(255, 255, 255, 0.14);
    transition: max-height 220ms ease, border-top-width 220ms ease, padding-top 220ms ease;
  }

  .site-header.has-menu.menu-open nav {
    max-height: 340px;
    padding-top: 10px;
    border-top-width: 1px;
  }

  nav a {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  nav a:hover,
  nav a.active {
    border-color: rgba(255, 255, 255, 0.42);
  }

  nav .nav-cta {
    justify-content: center;
    min-height: 44px;
    margin-top: 10px;
    padding: 0 16px;
    border-bottom: 0;
  }

  .hero {
    min-height: 68vh;
  }

  .hero-content {
    margin-inline: 20px;
    padding-block: 56px;
  }

  .section {
    padding-block: clamp(52px, 8vw, 84px);
  }

  .page-hero {
    min-height: 340px;
    padding-block: 72px 58px;
  }

  .intro-section,
  .project-grid,
  .process-grid,
  .detail-grid,
  .full-band,
  .advisor-section,
  .contact-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card {
    min-height: 300px;
  }

  .process-step {
    min-height: 170px;
    padding: 22px;
  }

  .process-step span {
    margin-bottom: 24px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  nav {
    font-size: 13px;
  }

  .site-header {
    padding-inline: 16px;
  }

  .brand img {
    width: min(220px, 62vw);
  }

  .hero {
    min-height: 64vh;
  }

  .hero-content {
    padding-block: 44px;
  }

  .section {
    padding: 46px 20px;
  }

  .page-hero {
    min-height: 300px;
    padding: 58px 20px 48px;
  }

  .service-grid,
  .form-row,
  .cost-result-grid {
    grid-template-columns: 1fr;
  }

  .service-tile {
    min-height: 96px;
  }

  .section-heading.split {
    align-items: start;
    flex-direction: column;
  }

  .cookie-banner {
    right: 14px;
    bottom: 14px;
    left: 14px;
    width: auto;
  }

  .cookie-actions,
  .cookie-actions .primary-action,
  .cookie-actions .secondary-action {
    width: 100%;
  }

  .cookie-actions {
    justify-content: stretch;
  }

  .project-card {
    min-height: 260px;
  }

  .process-step {
    min-height: 140px;
    padding: 20px;
  }

  .process-step span {
    margin-bottom: 18px;
  }

  .detail-card {
    border-radius: 8px;
  }

  .detail-card img {
    height: 220px;
    flex-basis: 220px;
    border-radius: 8px 8px 0 0;
  }

  .detail-card > div {
    border-radius: 0 0 8px 8px;
  }
}
