/* ==========================================================
   Sibel Aluftekin Architektur
   Mobile-first Stylesheet
   ========================================================== */

@font-face { font-family: "Nunito Sans"; src: url("fonts/nunito-sans-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("fonts/nunito-sans-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("fonts/nunito-sans-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: light;

  /* Farben aus dem Entwurf – Taupe leicht vertieft für lesbaren Kontrast */
  --taupe:      #7c746e;
  --taupe-deep: #6a635e;
  --sand:       #e6d8cb;
  --stone:      #ebe7e3;
  --paper:      #f5f2ee;
  --clay:       #735f4f;
  --clay-soft:  #b9a390;
  --ink:        #35312e;
  --text:       #4f4a46;
  --muted:      #67605b;
  --rule:       #d2cac2;

  --sans:  "Nunito Sans", "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;

  --wrap: 1180px;
  --gutter: 20px;
  --header: 64px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
@media (min-width: 700px)  { :root { --gutter: 40px; --header: 76px; } }
@media (min-width: 1000px) { :root { --gutter: 56px; --header: 88px; } }

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 12px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--stone);
  /* feines Papierkorn */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .27 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(125, 104, 87, .15);
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }

a { color: inherit; text-decoration: none; }
svg { display: block; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 300; color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px;
}
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 2px; }

.label {
  display: block;
  font-family: var(--sans); font-size: .75rem; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  height: var(--header);
  background: rgba(235, 231, 227, .92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: box-shadow .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--rule); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.wordmark {
  display: flex; flex-direction: column; line-height: 1.15;
  font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); font-weight: 400;
}
.wordmark span { color: var(--clay); letter-spacing: .34em; font-size: .6875rem; margin-top: 3px; }

.main-nav { display: none; }
.main-nav ul { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0; }
.main-nav a { position: relative; font-size: .9375rem; color: var(--ink); font-weight: 400; padding: 8px 0; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 10' preserveAspectRatio='none'%3E%3Cpath d='M2 6c30-4 62 3 116-2' fill='none' stroke='%237d6857' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  clip-path: inset(0 100% 0 0); transition: clip-path .45s var(--ease);
}
.main-nav a:hover::after, .main-nav a[aria-current="true"]::after { clip-path: inset(0 0 0 0); }
.main-nav .nav-phone { color: var(--clay); font-variant-numeric: tabular-nums; }

.menu-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; margin-right: -8px; padding: 0 8px;
  background: none; border: 0; cursor: pointer;
  font: 400 .8125rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink);
}
.menu-btn i { display: grid; gap: 5px; width: 22px; }
.menu-btn i::before, .menu-btn i::after { content: ""; height: 1.5px; background: currentColor; border-radius: 2px; }
.menu-btn i::after { width: 70%; justify-self: end; }

@media (min-width: 1000px) {
  .main-nav { display: block; }
  .menu-btn { display: none; }
  .wordmark { font-size: .875rem; }
}

/* ---------- Mobile-Menü ---------- */
.menu {
  position: fixed; inset: 0; z-index: 100;
  display: flex; flex-direction: column;
  background: var(--paper);
  padding: 0 var(--gutter) calc(28px + env(safe-area-inset-bottom));
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  overflow-y: auto; overflow-x: hidden;
}
.menu.is-open { opacity: 1; visibility: visible; transform: none; }
.menu__top { height: var(--header); display: flex; align-items: center; justify-content: space-between; flex: none; }
.menu__links { list-style: none; margin: 28px 0 0; padding: 0; }
.menu__links a {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--rule);
  font-family: var(--serif); font-size: 2rem; line-height: 1.2; color: var(--ink);
}
.menu__links a small { font-family: var(--sans); font-size: .75rem; letter-spacing: .18em; color: var(--muted); }
.menu__contact { margin-top: auto; padding-top: 36px; display: grid; gap: 10px; }
.menu__contact a { font-size: 1.0625rem; color: var(--ink); padding: 6px 0; }
.menu__legal { display: flex; gap: 24px; margin-top: 18px; }
.menu__legal a { font-size: .875rem; color: var(--muted); padding: 10px 0; }

/* ---------- Hero ---------- */
.hero { padding-bottom: 0; }
.hero__grid { display: grid; }

.hero__panel {
  position: relative;
  background: var(--taupe);
  color: #fff;
  padding: 48px var(--gutter) 56px;
  border-radius: 0 0 88px 0;
}
.lockup { display: inline-flex; flex-direction: column; align-items: flex-start; }
.lockup__name {
  font-family: var(--sans); font-weight: 300; color: #fff;
  font-size: clamp(1.9rem, 9vw, 4.1rem);
  line-height: 1.05; letter-spacing: .05em; text-transform: uppercase;
}
.lockup__disc {
  margin-top: .35em;
  font-size: clamp(1.1rem, 5.1vw, 2.35rem);
  letter-spacing: .52em; margin-right: -.52em;
  line-height: 1.2; text-transform: uppercase; color: var(--sand);
  padding-bottom: .5em;
  position: relative; align-self: stretch;
}
.lockup__disc::after {
  content: ""; position: absolute; left: 0; right: .52em; bottom: 0; height: 1px; background: var(--sand);
  transform-origin: left;
}
.lockup__title {
  margin-top: 1.1em;
  font-size: clamp(.72rem, 2.9vw, .95rem); font-weight: 400;
  letter-spacing: .22em; text-transform: uppercase; color: #fff;
}
@keyframes line { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }

/* Hero-Animation: startet bei jedem Wiedereintritt in den sichtbaren Bereich */
.js .hero__panel:not(.is-active) [data-stagger] { opacity: 0; }
.js .hero__panel.is-active [data-stagger] { animation: rise 1s var(--ease) both; animation-delay: calc(var(--d, 0) * 110ms); }
.js .hero__panel:not(.is-active) .lockup__disc::after { transform: scaleX(0); }
.js .hero__panel.is-active .lockup__disc::after { animation: line 1.3s .35s var(--ease) both; }

.hero__lead {
  margin: 34px 0 0; max-width: 30ch;
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.25rem, 4.8vw, 1.6rem); line-height: 1.35; color: #fff;
}
.hero__place {
  margin: 20px 0 0;
  font-size: .8125rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sand);
}
.hero__cta {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; min-height: 44px;
  font-size: .9375rem; font-weight: 400; color: #fff;
}
.hero__cta svg { width: 34px; height: 12px; transition: transform .35s var(--ease); }
.hero__cta:hover svg { transform: translateX(6px); }


@media (min-width: 700px) {
  .hero__panel { padding: 72px var(--gutter) 80px; border-radius: 0 0 140px 0; }
}
@media (min-width: 1000px) {
  .hero__grid { min-height: min(calc(100svh - var(--header)), 520px); }
  .hero__panel {
    display: flex; flex-direction: column; justify-content: center;
    padding: 96px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 104px;
    border-radius: 0 0 200px 0;
  }
  .lockup__name { font-size: clamp(2.5rem, 3.7vw, 3.5rem); white-space: nowrap; }
  .lockup__disc { font-size: clamp(1.6rem, 2.35vw, 2.2rem); }
  .fields { padding-bottom: 72px; }
}

/* ---------- Sections allgemein ---------- */
.section { padding: 72px 0; }
@media (min-width: 700px)  { .section { padding: 104px 0; } }
@media (min-width: 1000px) { .section { padding: 136px 0; } }

.h2 {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2rem, 7.4vw, 3.6rem); line-height: 1.08; letter-spacing: -.01em;
}
.h2 em { font-style: italic; color: var(--clay); }

/* ---------- Profil ---------- */
.profile__grid { display: grid; gap: 44px; }
.statement {
  max-width: 22ch;
  font-family: var(--serif); font-weight: 300; color: var(--ink);
  font-size: clamp(1.6rem, 5.2vw, 2.6rem); line-height: 1.22; letter-spacing: -.005em;
  margin: 14px 0 0;
}
/* ---------- Tätigkeitsfelder ---------- */
.fields { padding-top: 24px; }
.fields__head { display: grid; gap: 16px; margin-bottom: 44px; }
.fields__head p { max-width: 44ch; margin: 0; }
.fields__grid { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; }

.field { padding: 30px 0 34px; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; }
.field__icon { width: 52px; height: 52px; color: var(--clay); }
.field h3 { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; margin-top: 8px; }
.field ul { grid-column: 2; list-style: none; margin: 12px 0 0; padding: 0; }
.field li { position: relative; padding: 3px 0 3px 20px; }
.field li::before { content: ""; position: absolute; left: 0; top: .95em; width: 10px; height: 1px; background: var(--clay-soft); }

.sectors {
  margin-top: 28px;
  background: var(--taupe); color: #fff;
  border-radius: 64px 0 64px 0;
  padding: 34px 24px 30px;
}
.sectors h3 { color: #fff; font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; }
.sectors h3 em { color: var(--sand); }
.sectors ul { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.sectors li { text-align: center; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
.sectors svg { width: 100%; max-width: 92px; height: auto; margin: 0 auto 10px; color: var(--sand); }

@media (min-width: 700px) {
  .fields__grid { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .field { grid-template-columns: 1fr; padding: 34px 0 40px; }
  .field__icon { width: 60px; height: 60px; margin-bottom: 8px; }
  .field h3 { font-size: 1.85rem; }
  .field ul { grid-column: 1; }
  .fields__grid { padding-bottom: 88px; }
  .fields__grid > :nth-child(even) { translate: 0 88px; }
  .sectors { margin-top: 12px; align-self: start; padding: 40px 36px 36px; border-radius: 88px 0 88px 0; }
  .fields__head { grid-template-columns: 1fr 1fr; align-items: end; gap: 56px; margin-bottom: 64px; }
}
@media (min-width: 1000px) {
  .fields__grid { column-gap: 120px; }
  .field { padding: 40px 0 48px; }
  .fields__grid { padding-bottom: 120px; }
  .fields__grid > :nth-child(even) { translate: 0 120px; }
}

/* ---------- Arbeitsweise ---------- */
.process {
  background: var(--paper);
  border-radius: 88px 0 0 0;
}
@media (min-width: 1000px) { .process { border-radius: 180px 0 0 0; } }
.process__head { max-width: 760px; margin-bottom: 48px; }
.process__head .h2 { margin-top: 14px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; position: relative; }
.step { padding: 22px 0 24px; border-top: 1px solid var(--rule); }
.step h3 { font-family: var(--serif); font-size: 1.4rem; line-height: 1.25; margin: 0 0 6px; }
.step p { margin: 0; max-width: 46ch; }

@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(2, 1fr); column-gap: 64px; }
}
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(3, 1fr); column-gap: 80px; }
  .step { padding: 26px 0 30px; }
}

/* ---------- Einzugsgebiet ---------- */
.region__grid, .faq__grid { display: grid; gap: 28px; }
.region__list {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 8px 10px;
}
.region__list li {
  font-size: .9rem; color: var(--ink);
  border: 1px solid var(--rule); border-radius: 999px;
  padding: 6px 14px;
}
.region p { max-width: 52ch; }

/* ---------- Fragen ---------- */
.faq__item { border-top: 1px solid var(--rule); }
.faq__list .faq__item:last-child { border-bottom: 1px solid var(--rule); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  list-style: none; cursor: pointer;
  padding: 18px 0; min-height: 56px;
  font-family: var(--serif); font-size: 1.2rem; line-height: 1.3; color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  border-right: 1.5px solid var(--clay); border-bottom: 1.5px solid var(--clay);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .3s var(--ease);
}
.faq__item[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq__item p { margin: -4px 0 22px; max-width: 58ch; }

@media (min-width: 1000px) {
  .region__grid, .faq__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 80px; align-items: start; }
}

/* ---------- Kontakt ---------- */
.contact-bg { background: var(--paper); }
.contact {
  background: var(--taupe); color: #fff;
  border-radius: 0 88px 0 0;
}
@media (min-width: 1000px) { .contact { border-radius: 0 180px 0 0; } }
.contact .label { color: #fff; opacity: .9; }
.contact__grid { display: grid; gap: 40px; }
.contact .h2 { color: #fff; margin-top: 14px; }
.contact .h2 em { color: var(--sand); }
.contact__intro p { margin-top: 20px; max-width: 38ch; }

.actions { list-style: none; margin: 0; padding: 0; }
.actions li { border-top: 1px solid rgba(255, 255, 255, .28); }
.actions li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .28); }
.actions a, .actions__static {
  display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 16px;
  min-height: 72px; padding: 14px 0;
}
.actions svg.ico { width: 26px; height: 26px; color: var(--sand); }
.actions small { display: block; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: #fff; opacity: .88; }
.actions span { display: block; font-size: 1.125rem; line-height: 1.35; color: #fff; overflow-wrap: anywhere; }
.actions .arrow { width: 22px; height: 12px; color: var(--sand); transition: transform .35s var(--ease); }
.actions a:hover .arrow { transform: translateX(5px); }

@media (min-width: 1000px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 120px; align-items: end; }
  .actions span { font-size: 1.25rem; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--taupe-deep); color: #fff; padding: 36px 0 calc(36px + env(safe-area-inset-bottom)); font-size: .875rem; }
.site-footer__inner { display: grid; gap: 18px; }
.site-footer nav { display: flex; gap: 8px 28px; flex-wrap: wrap; }
.site-footer nav a { padding: 10px 0; }
.site-footer nav a:hover { color: var(--sand); }
.site-footer p { margin: 0; color: #f0ebe6; }
@media (min-width: 700px) {
  .site-footer__inner { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---------- Mobile Schnellkontakt ---------- */
.quickbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: rgba(255, 255, 255, .25);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -8px 24px rgba(53, 49, 46, .12);
  transform: translateY(110%); transition: transform .4s var(--ease);
}
.quickbar.is-visible { transform: none; }
.quickbar a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; background: var(--taupe); color: #fff;
  font-size: .9375rem; font-weight: 400;
}
.quickbar svg { width: 20px; height: 20px; color: var(--sand); }
@media (max-width: 999px) { .has-quickbar .site-footer { padding-bottom: calc(92px + env(safe-area-inset-bottom)); } }
@media (min-width: 1000px) { .quickbar { display: none; } }

/* ---------- Rechtstexte ---------- */
.legal-page { padding: 48px 0 80px; }
.legal-page .wrap { max-width: 820px; }
.legal-page h1 { font-family: var(--serif); font-size: clamp(2.4rem, 9vw, 3.8rem); line-height: 1.05; margin: 12px 0 8px; }
.legal-page h2 {
  font-family: var(--sans); font-weight: 400; font-size: .8125rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink); margin: 44px 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--rule);
}
.legal-page p, .legal-page li, .legal-page h2 { overflow-wrap: break-word; }
.legal-page p, .legal-page li { font-size: 1rem; }
.legal-page ul { padding-left: 1.2em; }
.legal-page a { color: var(--clay); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.todo { background: #f1dfc4; color: #5f4526; padding: 0 .3em; border-radius: 2px; font-weight: 400; }
.back-link { display: inline-flex; align-items: center; gap: 10px; margin-top: 44px; min-height: 44px; color: var(--ink); font-weight: 400; }
.back-link svg { width: 22px; height: 12px; transform: scaleX(-1); }

/* Vorschau: Rechtstexte als eigene Ansichten */
.view { display: none; }
.view:target { display: block; }
body:has(.view:target) .home { display: none; }

/* ---------- Einblenden ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .hero__panel [data-stagger] { opacity: 1 !important; translate: none !important; }
  .js .hero__panel .lockup__disc::after { transform: none !important; }
}

@media print {
  .site-header, .menu, .quickbar { display: none !important; }
  body { background: #fff; }
  .hero__panel, .contact, .sectors, .site-footer { background: none; color: #000; }
  .lockup__name, .lockup__title, .contact .h2, .actions span { color: #000; }
}
