/* ===== Schriften (lokal eingebunden, kein Google-Fonts-Aufruf → datenschutzfreundlich) ===== */
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Outfit"; src: url("../fonts/outfit-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Signature"; src: url("../fonts/script.woff2") format("woff2"); font-weight: 400; font-display: swap; }

/* ===== Farben & Grundwerte – hier zentral anpassbar =====
   Braun (burlywood4 #8B7355) als Hauptfarbe mit fliessendem Verlauf, Babyblau (SkyBlue3) als Akzent, Off-White dezent */
:root {
  --bg: #8b7355;            /* Braun burlywood4 – Haupthintergrund */
  --bg-alt: #7a6449;        /* etwas dunkleres Braun */
  --bg-deep: #4e3f2d;       /* dunkles Braun (Buttons, Ende des Verlaufs) */
  --surface: rgba(246,239,228,.07); /* Karten: leicht aufgehellt, Verlauf scheint durch */
  --offwhite: #f6efe4;      /* Off-White: Text und dezente Flächen */
  --text: #f6efe4;
  --muted: #efe1cf;
  --accent: #6ca6cd;        /* Babyblau SkyBlue3 */
  --accent-2: #4f8db8;      /* dunkleres Blau */
  --accent-light: #cfe8f8;  /* helles Babyblau für Text auf Braun (gut lesbar) */
  --accent-text: #cfe8f8;
  --glow: rgba(108,166,205,.6);
  --line: rgba(246,239,228,.16);
  --radius: 10px;
  --max: 1200px;
  --font: "Outfit", "Helvetica Neue", Arial, system-ui, sans-serif;
  --script: "Signature", "Brush Script MT", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: linear-gradient(180deg, #96805f 0%, var(--bg) 18%, #8f7758 38%, var(--bg-alt) 58%, #6b573e 78%, var(--bg-deep) 100%) var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { overflow-wrap: break-word; line-height: 1.15; margin: 0 0 .6em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Schreibschrift für Highlight-Wörter */
.script {
  font-family: var(--script); font-weight: 400; font-size: 1.6em; line-height: .75;
  letter-spacing: 0; text-transform: none; padding: 0 .08em;
  background: linear-gradient(90deg, #a9d3ef, var(--accent-light) 50%, #ffffff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 10px rgba(108,166,205,.55));
}

.eyebrow { color: var(--accent-text); text-transform: uppercase; letter-spacing: .22em; font-size: .8rem; font-weight: 700; margin-bottom: .8em; }

/* ===== Buttons (leuchtender Rahmen) ===== */
.btn { display: inline-block; padding: 16px 34px; border-radius: 8px; text-decoration: none; text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; font-weight: 700; font-family: inherit; cursor: pointer; transition: .25s; border: 1.5px solid var(--accent); text-align: center; }
.btn-glow { background: var(--bg-deep); color: var(--accent-light); box-shadow: 0 0 8px var(--glow), 0 0 24px rgba(108,166,205,.45), inset 0 0 10px rgba(108,166,205,.2); }
.btn-glow:hover { color: var(--bg-deep); background: var(--accent-light); box-shadow: 0 0 14px var(--glow), 0 0 38px rgba(108,166,205,.65); }
.btn-outline { background: transparent; color: var(--offwhite); border-color: var(--offwhite); box-shadow: 0 0 14px rgba(246,239,228,.18); }
.btn-outline:hover { background: var(--offwhite); color: var(--bg-deep); box-shadow: 0 0 24px rgba(246,239,228,.4); }
.btn-sm { padding: 10px 20px; font-size: .8rem; }
.btn:disabled { opacity: .6; cursor: wait; }

/* ===== Header ===== */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(139,115,85,.88); backdrop-filter: blur(10px); transition: box-shadow .3s; }
.site-header.scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(0,0,0,.15); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { display: block; width: auto; height: 54px; }
.logo-text { text-transform: uppercase; letter-spacing: .05em; font-size: .9rem; font-weight: 600; }
.logo-text strong { color: var(--accent-text); margin-left: 2px; }
.main-nav { display: flex; align-items: center; gap: 18px; margin-left: 24px; }
.main-nav a, .logo-text { white-space: nowrap; }
.main-nav a:not(.btn) { text-decoration: none; text-transform: uppercase; letter-spacing: .07em; font-size: .78rem; font-weight: 600; }
.main-nav a:not(.btn):hover { color: var(--accent-text); }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--offwhite); margin: 6px 0; transition: .3s; }

/* ===== Hero ===== */
/* Startbereich: Bild über die ganze Breite, läuft unten weich in das Braun aus */
.hero { position: relative; padding-top: 76px; }
.hero-media { position: relative; }
.hero-media img { width: 100%; height: auto; max-height: 78vh; object-fit: cover; object-position: center 60%; mix-blend-mode: luminosity; opacity: .95; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 62%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 62%, transparent 100%), linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%); mask-composite: intersect; }
.hero-content { position: relative; margin-top: -60px; padding-bottom: 80px; text-align: center; }
.hero-content .lead { margin-left: auto; margin-right: auto; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 34px; }

/* ===== USP ===== */
.usp { background: linear-gradient(90deg, rgba(246,239,228,0), rgba(246,239,228,.12) 20%, rgba(246,239,228,.12) 80%, rgba(246,239,228,0)); }
.usp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 30px; padding-bottom: 30px; text-align: center; }
.usp-grid strong { display: block; color: var(--accent-text); font-size: 1.2rem; font-weight: 800; }
.usp-grid span { color: var(--muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }

/* ===== Sections ===== */
.section { padding: 110px 0; }
.section-alt { background: transparent; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.section-head p:last-child:not(.eyebrow) { color: var(--muted); }

/* Leistungen */
/* Kacheln (Leistungen) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tile { display: flex; flex-direction: column; padding: 32px; background: rgba(40,30,20,.32); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(4px); transition: transform .3s, border-color .3s, box-shadow .3s; }
.tile:hover { transform: translateY(-4px); border-color: rgba(108,166,205,.5); box-shadow: 0 18px 40px rgba(0,0,0,.25), 0 0 24px rgba(108,166,205,.18); }
.tile h3 { margin: 22px 0 12px; font-size: 1.35rem; }
.tile p { color: var(--muted); margin: 0 0 28px; flex: 1; }
.tile-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 10px; background: #2b2117; color: var(--accent-light); box-shadow: inset 0 0 0 1px rgba(246,239,228,.06); }
.tile-icon svg { width: 28px; height: 28px; filter: drop-shadow(0 0 6px rgba(108,166,205,.6)); }
.btn-block { display: block; width: 100%; padding: 14px 20px; }

/* Ablauf */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { padding: 30px; background: rgba(40,30,20,.32); border: 1px solid var(--line); border-radius: 14px; }
.steps h3 { margin: 22px 0 10px; }
.step-no { font-size: 1.3rem; font-weight: 800; text-shadow: 0 0 8px rgba(108,166,205,.6); }
.steps p { color: var(--muted); margin: 0; }

/* Galerie: Slideshow */
.slideshow { max-width: 980px; margin: 0 auto; }
.ss-stage { position: relative; aspect-ratio: 16/10; max-height: 68vh; width: 100%; overflow: hidden; border-radius: 14px; background: #2b2117; border: 1px solid var(--line); box-shadow: 0 24px 50px rgba(0,0,0,.3), 0 0 30px rgba(108,166,205,.12); }
.ss-backdrop { position: absolute; inset: -40px; background: center/cover no-repeat; filter: blur(28px) brightness(.55) saturate(1.1); transition: background-image .6s; }
.slides { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; margin: 0; display: none; opacity: 0; }
.slide.is-near { display: block; }
.slide.is-active { display: block; opacity: 1; animation: ssFade .7s ease; z-index: 1; }
.slide a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.slide img { width: 100%; height: 100%; object-fit: contain; }
@keyframes ssFade { from { opacity: 0; transform: scale(1.015); } to { opacity: 1; transform: none; } }
.ss-btn, .ss-play { display: grid; place-items: center; border: 1px solid rgba(246,239,228,.25); background: rgba(43,33,23,.6); color: var(--offwhite); backdrop-filter: blur(6px); cursor: pointer; transition: background .25s, border-color .25s, box-shadow .25s; }
.ss-btn:hover, .ss-play:hover { background: rgba(43,33,23,.85); border-color: var(--accent); box-shadow: 0 0 16px var(--glow); }
.ss-btn:focus-visible, .ss-play:focus-visible, .ss-thumb:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }
.ss-btn { position: absolute; top: 50%; z-index: 3; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; }
.ss-prev { left: 14px; } .ss-next { right: 14px; }
.ss-btn svg, .ss-play svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ss-play .i-play { fill: currentColor; stroke-width: 1.5; display: none; }
.slideshow.paused .ss-play .i-play { display: block; } .slideshow.paused .ss-play .i-pause { display: none; }
.ss-bar { position: absolute; left: 14px; bottom: 16px; z-index: 3; display: flex; align-items: center; gap: 10px; }
.ss-play { width: 36px; height: 36px; border-radius: 50%; } .ss-play svg { width: 16px; height: 16px; }
.ss-counter { padding: 5px 12px; border-radius: 99px; background: rgba(43,33,23,.6); backdrop-filter: blur(6px); font-size: .9rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.ss-counter b { color: var(--offwhite); }
.ss-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; z-index: 3; background: rgba(246,239,228,.12); }
.ss-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent-2), var(--accent-light)); box-shadow: 0 0 10px var(--glow); }
.ss-progress span.run { width: 100%; transition: width linear; }
.ss-thumbs { display: flex; gap: 10px; margin-top: 14px; padding: 4px 2px 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: rgba(246,239,228,.3) transparent; }
.ss-thumb { flex: none; width: 96px; aspect-ratio: 4/3; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #2b2117; cursor: pointer; opacity: .55; scroll-snap-align: center; transition: opacity .25s, border-color .25s, box-shadow .25s; }
.ss-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ss-thumb:hover { opacity: .9; }
.ss-thumb[aria-current="true"] { opacity: 1; border-color: var(--accent); box-shadow: 0 0 14px var(--glow); }

/* Lightbox (Vollbild mit Blättern) */
.lightbox { position: fixed; inset: 0; background: rgba(30,24,16,.96); display: grid; place-items: center; z-index: 100; padding: 20px; }
.lightbox img { max-height: 82vh; max-width: 100%; width: auto; border-radius: var(--radius); animation: ssFade .4s ease; }
.lightbox .ss-btn { position: fixed; }
.lightbox .lb-close { position: fixed; top: 16px; right: 16px; margin-top: 0; width: 44px; height: 44px; border-radius: 50%; }
.lb-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.lb-caption { position: fixed; bottom: 18px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: .95rem; padding: 0 70px; }
@media (max-width: 600px) {
  .ss-stage { aspect-ratio: 4/5; }
  .ss-btn { width: 40px; height: 40px; margin-top: -20px; } .ss-prev { left: 8px; } .ss-next { right: 8px; }
  .ss-thumb { width: 72px; }
}
@media (prefers-reduced-motion: reduce) { .slide.is-active, .lightbox img { animation: none; } }

/* CTA-Banner: sanfter Verlauf ohne Bild */
.cta-banner { position: relative; padding: 120px 0; text-align: center; background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(108,166,205,.28) 0%, rgba(108,166,205,.08) 45%, rgba(108,166,205,0) 75%); }
.cta-content { position: relative; }

/* Kontakt: Handy links, Kanäle rechts (wie codepixel.ch) */
.contact-layout { display: flex; gap: 64px; align-items: center; justify-content: center; max-width: 900px; }
.phone-mockup { position: relative; flex: none; width: 270px; height: 540px; background: #2b2117; border-radius: 42px; border: 3px solid #5a4733; padding: 10px; box-shadow: 0 30px 60px rgba(0,0,0,.35), 0 0 40px rgba(108,166,205,.2); }
.phone-mockup::before { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; background: #2b2117; border-radius: 20px; z-index: 2; }
.phone-screen { width: 100%; height: 100%; background: linear-gradient(180deg, #3b2f22 0%, #2a2119 100%); border-radius: 32px; overflow: hidden; display: flex; flex-direction: column; }
.phone-header { padding: 48px 20px 16px; text-align: center; border-bottom: 1px solid rgba(246,239,228,.08); }
.phone-logo { height: 52px; width: auto; margin: 0 auto 10px; background: var(--offwhite); padding: 6px 8px; border-radius: 10px; }
.phone-header p { color: var(--accent-light); font-size: .72rem; font-weight: 600; margin: 0; text-transform: uppercase; letter-spacing: .08em; }
.phone-header h3 { color: var(--offwhite); font-size: 1.05rem; margin: 4px 0 0; }
.phone-body { flex: 1; padding: 18px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.phone-msg { background: rgba(108,166,205,.14); border: 1px solid rgba(108,166,205,.3); border-radius: 16px 16px 16px 4px; padding: 12px 16px; color: var(--offwhite); font-size: .85rem; line-height: 1.5; }
.phone-msg-me { align-self: flex-end; background: rgba(246,239,228,.1); border-color: rgba(246,239,228,.2); border-radius: 16px 16px 4px 16px; }
.contact-options { display: flex; flex-direction: column; gap: .65rem; flex: 1; min-width: 0; }
.contact-options h2 { margin-bottom: .1em; }
.contact-intro { color: var(--muted); margin-bottom: .6rem; }
.contact-btn { display: flex; align-items: center; gap: 14px; padding: .85rem 1.2rem; background: rgba(40,30,20,.32); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 600; transition: .25s; }
.contact-btn:hover { border-color: var(--accent); background: rgba(108,166,205,.12); transform: translateX(6px); box-shadow: 0 0 18px rgba(108,166,205,.25); }
.contact-btn small { display: block; font-weight: 400; font-size: .82rem; color: var(--muted); }
.contact-btn-icon { flex: none; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; }
.contact-btn-icon svg { width: 19px; height: 19px; }
.contact-btn-icon.whatsapp { background: #25d366; }
.contact-btn-icon.telefon { background: #007aff; }
.contact-btn-icon.viber { background: #7360f2; }
.contact-btn-icon.telegram { background: #2aabee; }
.contact-btn-icon.email { background: var(--accent); }
.contact-arrow { margin-left: auto; color: var(--accent-light); font-size: 1.1rem; }
.contact-facts { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.contact-facts li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.contact-facts svg { width: 22px; height: 22px; color: var(--accent-light); flex: none; }
.contact-facts strong { color: var(--offwhite); margin-right: 4px; }

/* Footer */
.site-footer { background: transparent; border-top: 1px solid var(--line); padding: 70px 0 0; color: var(--muted); font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: var(--text); text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.footer-grid a:not(.logo), .footer-grid span:not(.logo-mark):not(.logo-text) { display: block; text-decoration: none; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--accent-text); }
.footer-grid .logo .logo-mark { height: 70px; }
.footer-grid .logo { margin-bottom: 14px; color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 50px; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid var(--line); font-size: .82rem; }

/* Unterseite (Impressum) */
.legal { padding: 140px 20px 80px; max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--accent-text); }

/* Einblend-Animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } html { scroll-behavior: auto; } }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero { padding-top: 120px; }
  .contact-layout { flex-direction: column; gap: 40px; }
  .tiles, .steps, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: 76px 0 auto; flex-direction: column; gap: 0; background: var(--bg); padding: 10px 20px 24px; box-shadow: 0 20px 30px rgba(0,0,0,.2); transform: translateY(-120%); transition: transform .3s; visibility: hidden; }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav a:not(.btn) { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 18px; }
  .nav-toggle[aria-expanded=true] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded=true] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded=true] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 75px 0; }
  .tiles, .steps, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .tile { padding: 24px; }
  .phone-mockup { width: 240px; height: 470px; }
  .hero-content { margin-top: -20px; }
  .hero-actions .btn { width: 100%; }
}

.hero-content > * { min-width: 0; }
.script { white-space: nowrap; hyphens: none; }
@media (max-width: 600px) {
  .logo-mark { height: 42px; }
  .logo-text { font-size: .74rem; letter-spacing: .05em; line-height: 1.3; }
  .site-header .btn-outline.btn-sm { display: none; }
}

/* Sprachwahl */
.lang-switch { display: flex; gap: 2px; margin-left: 6px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; }
.lang-switch a { text-decoration: none; font-size: .72rem !important; font-weight: 700; letter-spacing: .06em; padding: 5px 7px; border-radius: 6px; opacity: .8; }
.lang-switch a[aria-current] { background: rgba(108,166,205,.25); color: var(--accent-light); opacity: 1; }
@media (max-width: 960px) {
  .lang-switch { margin: 18px 0 0; border: 0; padding: 0; gap: 8px; }
  .lang-switch a { border: 1px solid var(--line) !important; width: auto !important; padding: 8px 12px !important; }
}
@media (max-width: 1180px) {
  .nav-toggle { display: block; }
  .main-nav { position: fixed; inset: 76px 0 auto; flex-direction: column; align-items: stretch; gap: 0; margin-left: 0; background: var(--bg); padding: 10px 20px 24px; box-shadow: 0 20px 30px rgba(0,0,0,.2); transform: translateY(-120%); transition: transform .3s; visibility: hidden; }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav a:not(.btn) { padding: 14px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-top: 18px; align-self: center; }
  .lang-switch { justify-content: center; margin: 18px 0 0; border: 0; padding: 0; gap: 8px; }
  .lang-switch a { border: 1px solid var(--line) !important; padding: 8px 12px !important; }
  .nav-toggle[aria-expanded=true] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded=true] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded=true] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
