/* Cada Día Mallorca, Startseite. Branchen-Standard mit GRAZA-Bildwirkung. */

@font-face { font-family: "Josefin Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/josefin-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Josefin Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/josefin-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Josefin Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/josefin-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-weight: 500; font-style: italic; font-display: swap; src: url("../fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2"); }

:root {
  /* Marke */
  --avocado-hell: #E9FFCE;
  --avocado: #6F9A2E;
  --avocado-tief: #4A6E1D;   /* Text und Knöpfe auf Weiß und Hell, Kontrast über 4.5:1 */
  --anthrazit: #3D3B3A;
  --anthrazit-tief: #2E2C2B;
  --weiss: #FFFFFF;
  --dach: var(--avocado);
  --text: var(--anthrazit);
  --text-leise: #5E5B59;
  --linie: rgba(61, 59, 58, .22);

  /* Schrift */
  --sans: "Josefin Sans", system-ui, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
  --fs-body: 1.125rem;
  --fs-h1: clamp(1.95rem, 1.1rem + 3.6vw, 4.1rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 2vw, 2.9rem);
  --fs-h3: 1.25rem;
  --fs-key: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);

  /* Abstände */
  --gutter: 16px;
  --max: 1240px;
  --section: clamp(72px, 6vw + 40px, 140px);
  --radius-img: 20px;
  --radius-btn: 10px;

  /* Einstieg, für das Regler-Panel in Phase 6 */
  --hero-foto-hoehe: 32svh;
  --hero-panel-ueberlappung: 0px;
  --hero-panel-breite: 100%;
}
@media (min-width: 960px) {
  :root {
    --gutter: 40px;
    --hero-foto-hoehe: min(48svh, 480px);
    --hero-panel-ueberlappung: 120px;
    --fs-h1: clamp(2.6rem, 1rem + 2.6vw, 3.4rem);
    --hero-panel-breite: 66%;
    --hero-lead: 1.1875rem;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--avocado) var(--avocado-hell); }
body { margin: 0; background: var(--weiss); color: var(--text); font-family: var(--sans); font-size: var(--fs-body); line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
h1, h2, h3 { font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
h2 { font-size: var(--fs-h2); margin-bottom: .6em; }
h3 { font-size: var(--fs-h3); line-height: 1.25; font-weight: 600; }
p { margin: 0 0 1em; max-width: 65ch; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
::selection { background: var(--avocado-tief); color: var(--weiss); }
:focus-visible { outline: 3px solid var(--avocado-tief); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--anthrazit); color: var(--weiss); padding: 10px 14px; border-radius: var(--radius-btn); z-index: 50; }
.skip:focus { left: 8px; }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 16px 24px 13px; border-radius: var(--radius-btn); font-weight: 600; font-size: 1.0625rem; line-height: 1.1; text-decoration: none; text-align: center; transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease; }
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--avocado-tief); color: var(--weiss); }
.btn-line { border: 1px solid var(--anthrazit); color: var(--anthrazit); }
.btn-light { background: var(--avocado-hell); color: var(--anthrazit); }
.btn-line-light { border: 1px solid var(--avocado-hell); color: var(--avocado-hell); }
/* Hover nur bei echter Maus, damit auf dem Handy kein Zustand „hängen“ bleibt */
@media (hover: hover) {
  .btn-solid:hover { background: var(--anthrazit); }
  .btn-line:hover { background: var(--anthrazit); color: var(--weiss); }
  .btn-light:hover { background: var(--weiss); color: var(--anthrazit); }
  .btn-line-light:hover { background: var(--avocado-hell); color: var(--anthrazit); }
}
.btn-small { min-height: 42px; padding: 12px 16px 9px; font-size: .9375rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions .btn { flex: 1 1 200px; }

/* Kopf */
.top { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); border-bottom: 1px solid transparent; transition: border-color .3s ease; }
@supports (backdrop-filter: blur(8px)) { .top { background: rgba(255,255,255,.82); backdrop-filter: blur(10px) saturate(1.2); } }
.top.scrolled { border-bottom-color: var(--linie); }
.top-inner { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--anthrazit); margin-right: auto; }
.mark { width: 38px; height: 36px; flex: none; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-weight: 600; font-size: 1.05rem; letter-spacing: .12em; }
.logo-sub { font-weight: 600; font-size: .6875rem; letter-spacing: .3em; margin-top: 4px; }
.logo-zusatz { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: .8125rem; letter-spacing: .01em; margin-top: 3px; color: var(--avocado-tief); white-space: nowrap; }
.foot .logo-zusatz { color: var(--avocado-hell); }
@media (min-width: 960px) { .top .logo-zusatz { font-size: .875rem; } }
.lang ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.lang a { display: block; padding: 10px 7px 7px; font-size: .875rem; font-weight: 600; letter-spacing: .06em; text-decoration: none; color: var(--text-leise); border-radius: 6px; }
@media (hover: hover) { .lang a:hover { color: var(--anthrazit); background: var(--avocado-hell); } }
.lang a[aria-current="page"] { color: var(--anthrazit); text-decoration: underline; text-decoration-color: var(--avocado); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.top-wa { display: none; }
@media (min-width: 640px) { .top-wa { display: inline-flex; } }

/* Einstieg */
.hero { background: var(--avocado-hell); padding-bottom: 40px; }
.hero-photo { height: var(--hero-foto-hoehe); min-height: 260px; overflow: hidden; }
.hero-photo picture { height: 100%; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; animation: heroIn 1.6s cubic-bezier(.16, 1, .3, 1) both; }
@keyframes heroIn { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-panel { position: relative; width: var(--hero-panel-breite); margin-top: calc(-1 * var(--hero-panel-ueberlappung)); background: var(--avocado-hell); padding: 24px 0 0; display: flex; flex-direction: column; }
/* Handy: Knöpfe direkt unter die Überschrift, damit sie ohne Scrollen sichtbar sind */
.hero-panel .actions { order: 3; margin-bottom: 22px; }
.hero-panel .hero-text { order: 4; }
.hero-panel .hero-note { order: 5; }
@media (max-width: 959px) {
  .hero-panel .actions .btn { flex: 1 1 auto; padding-left: 16px; padding-right: 16px; }
}
@media (min-width: 960px) {
  .hero-panel .actions { order: 4; margin-bottom: 0; }
  .hero-panel .hero-text { order: 3; margin-bottom: 28px; }
}
.hero h1 { font-size: var(--fs-h1); margin-bottom: .45em; }
.hero-text { font-size: var(--hero-lead, 1.125rem); }
.hero-note { margin: 18px 0 0; font-size: 1rem; font-weight: 600; color: var(--avocado-tief); }
@media (min-width: 960px) {
  .hero { padding-bottom: 80px; }
  .hero-panel { padding: 44px 56px 8px; border-radius: var(--radius-img) var(--radius-img) 0 0; }
  .actions .btn { flex: 0 1 auto; min-width: 230px; }
}

/* Ein Ansprechpartner */
.eins { padding: var(--section) 0; }
.eins-grid { display: grid; gap: 40px; align-items: center; }
.key { font-size: var(--fs-key); font-weight: 700; line-height: 1.15; color: var(--avocado-tief); margin: 1.1em 0 .6em; max-width: 22ch; }
.rounded img { border-radius: var(--radius-img); }
.eins-photo img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
@media (min-width: 960px) {
  .eins-grid { grid-template-columns: 1fr 1fr; gap: 96px; }
  .eins-photo { margin-right: calc(-1 * var(--gutter)); }
}

/* Leistungen */
.leistungen { background: var(--avocado-hell); padding: var(--section) 0 calc(var(--section) * .8); }
.leist-head { display: grid; gap: 8px; margin-bottom: 36px; }
.leist-head h2 { margin: 0; max-width: 16ch; }
.leist-head p { margin: 0; font-size: 1.2rem; }
@media (min-width: 960px) { .leist-head { grid-template-columns: 1.2fr 1fr; align-items: end; gap: 64px; margin-bottom: 56px; } }
.cards { list-style: none; margin: 0; padding: 4px var(--gutter) 16px; display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: var(--gutter); scrollbar-width: thin; }
.cards:focus-visible { outline-offset: -3px; }
.card { scroll-snap-align: start; background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius-img); overflow: hidden; display: flex; flex-direction: column; transition: transform .35s cubic-bezier(.16, 1, .3, 1), border-color .35s ease; }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.16, 1, .3, 1); }
.card-body { padding: 20px 22px 24px; }
.card-body h3 { margin-bottom: .5em; }
.card-body p { margin: 0; font-size: 1.0625rem; color: var(--text); }
.swipe-hint { margin: 10px auto 0; font-size: .9375rem; font-weight: 600; color: var(--avocado-tief); }
@media (min-width: 960px) {
  .cards { max-width: var(--max); margin: 0 auto; grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; gap: 20px; }
  .swipe-hint { display: none; }
}

/* Holz */
.holz { background: var(--anthrazit); color: var(--avocado-hell); }
.holz-grid { display: grid; }
.holz-photo { min-height: 320px; }
.holz-photo picture, .holz-photo img { width: 100%; height: 100%; object-fit: cover; }
.holz-text { padding: 56px var(--gutter) var(--section); max-width: 640px; }
.holz-text h2 { color: var(--weiss); }
.holz-text p:first-of-type { font-size: 1.3rem; line-height: 1.45; color: var(--weiss); }
.holz-text .btn { margin-top: 12px; }
@media (min-width: 960px) {
  .holz-grid { grid-template-columns: 1.15fr 1fr; min-height: 640px; }
  .holz-text { padding: var(--section) 64px; align-self: center; }
}

/* Für wen */
.wen { position: relative; padding-bottom: var(--section); }
.wen-photo { height: 52svh; min-height: 300px; overflow: hidden; }
.wen-photo picture, .wen-photo img { width: 100%; height: 100%; object-fit: cover; }
.wen-panel { position: relative; background: var(--weiss); margin-top: -64px; padding: 32px 22px 8px; border-radius: var(--radius-img); border: 1px solid var(--linie); }
.wen-list { list-style: none; margin: 0; padding: 0; }
.wen-list li { padding: 18px 0; border-top: 1px solid var(--linie); font-size: 1.15rem; line-height: 1.45; max-width: 60ch; }
.wen-list li:first-child { border-top: 0; padding-top: 4px; }
@media (min-width: 960px) {
  .wen-photo { height: 72svh; }
  .wen-panel { width: 62%; margin: -220px 0 0 auto; padding: 52px 56px 28px; }
  .wen-list li { font-size: 1.25rem; }
}

/* Team */
.team { padding: 0 0 var(--section); }
.team-grid { display: grid; gap: 36px; }
.team-photo { margin: 0; }
.team-photo img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.team-photo figcaption { margin-top: 10px; font-size: .9375rem; color: var(--text-leise); }
.team-key { margin: 56px 0 0; padding: 40px 0 0; border-top: 1px solid var(--anthrazit); }
.team-key p { font-size: var(--fs-key); font-weight: 700; line-height: 1.2; max-width: 30ch; margin: 0; }
@media (min-width: 960px) {
  .team-grid { grid-template-columns: 5fr 6fr; gap: 96px; align-items: start; }
  .team-text { padding-top: 24px; }
  .team-key { margin-top: 88px; }
  .team-key p { max-width: 34ch; font-size: clamp(2rem, 1.2rem + 1.6vw, 2.75rem); }
}

/* Ablauf */
.ablauf { background: var(--avocado-hell); padding: var(--section) 0; }
.ablauf h2 { margin-bottom: 1.1em; }
.steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 36px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: rgba(61, 59, 58, .2); }
.steps::after { background: var(--avocado-tief); transform-origin: top; transform: scaleY(var(--fill)); transition: transform .2s linear; }
.step { position: relative; z-index: 1; display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start; }
.step-num { width: 56px; height: 56px; border-radius: 50%; background: var(--weiss); border: 2px solid var(--anthrazit); display: grid; place-items: center; font-weight: 700; font-size: 1.5rem; padding-top: 4px; transition: background-color .4s ease, color .4s ease, border-color .4s ease; }
.step.on .step-num { background: var(--avocado-tief); border-color: var(--avocado-tief); color: var(--weiss); }
.step h3 { font-size: 1.35rem; margin: 12px 0 .35em; }
.step p { margin: 0; }
@media (min-width: 960px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .steps::before, .steps::after { left: 28px; right: 28px; top: 27px; bottom: auto; width: auto; height: 2px; }
  .steps::after { transform-origin: left; transform: scaleX(var(--fill)); }
  .step { grid-template-columns: 1fr; }
  .step h3 { margin-top: 8px; }
}

/* Fragen */
.faq { padding: var(--section) 0; }
.faq-grid { display: grid; gap: 24px; }
.faq-list { border-top: 1px solid var(--anthrazit); }
details { border-bottom: 1px solid var(--linie); }
summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0 19px; }
summary::-webkit-details-marker { display: none; }
summary h3 { font-size: 1.2rem; }
@media (hover: hover) {
  summary:hover h3 { color: var(--avocado-tief); }
  .kontakt-nr a:hover { text-decoration: underline; text-decoration-color: var(--avocado); }
}
@media (hover: hover) and (min-width: 960px) {
  .card:hover { transform: translateY(-4px); border-color: var(--anthrazit); }
  .card:hover .card-img img { transform: scale(1.04); }
}
.plus { position: relative; flex: none; width: 18px; height: 18px; }
.plus::before, .plus::after { content: ""; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; background: var(--anthrazit); transition: transform .3s ease; }
.plus::after { transform: rotate(90deg); }
details[open] .plus::after { transform: rotate(0deg); }
details p { margin: 0 0 24px; padding-right: 38px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: 4fr 7fr; gap: 96px; } .faq h2 { position: sticky; top: 100px; align-self: start; } }

/* Kontakt */
.kontakt { background: var(--anthrazit); color: var(--avocado-hell); padding: var(--section) 0; }
.kontakt h2 { color: var(--weiss); font-size: clamp(2.2rem, 1.4rem + 3vw, 3.8rem); }
.kontakt-grid { display: grid; gap: 48px; align-items: center; }
.kontakt-text p { font-size: 1.2rem; }
.kontakt-nr { margin-top: 32px; display: flex; flex-direction: column; gap: 4px; }
.kontakt-nr span { font-size: .9375rem; }
.kontakt-nr a { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 700; color: var(--weiss); text-decoration: none; font-variant-numeric: tabular-nums; }
.kontakt-photo img { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; max-height: 640px; }
@media (min-width: 960px) { .kontakt-grid { grid-template-columns: 7fr 4fr; gap: 96px; } }

/* Fuß */
.foot { background: var(--anthrazit-tief); color: var(--avocado-hell); padding: 48px 0 120px; font-size: 1rem; }
.foot .logo { color: var(--avocado-hell); margin-bottom: 20px; }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 16px 0 0; padding: 0; }
.foot a { color: var(--avocado-hell); }
@media (min-width: 960px) { .foot { padding-bottom: 48px; } }

/* Rechtstexte */
.legal-main { padding-top: 48px; padding-bottom: var(--section); max-width: 860px; }
.legal-main h1 { font-size: var(--fs-h2); margin-bottom: .6em; }
.legal-main h2 { font-size: 1.6rem; margin-top: 1.6em; }
.hinweis { background: var(--avocado-hell); padding: 16px 20px; border-radius: var(--radius-btn); }
.quellen { padding-left: 1.2em; }
.quellen li { margin-bottom: .5em; }
.quellen span { font-weight: 600; }
.legal .foot { padding-bottom: 48px; }

/* WhatsApp-Leiste auf dem Handy */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--linie); transform: translateY(110%); transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.dock.show { transform: none; }
.dock .btn-line { background: var(--weiss); }
@media (hover: hover) { .dock .btn-line:hover { background: var(--anthrazit); color: var(--weiss); } }
.dock .btn { padding: 15px 14px 12px; font-size: 1rem; white-space: nowrap; }
@media (min-width: 960px) { .dock { display: none; } }

/* Einblenden, nur mit JS aktiv */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.16, 1, .3, 1), transform .9s cubic-bezier(.16, 1, .3, 1); }
.js .reveal.in { 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; }
}

