@import url("fonts.css");

/* =============================================================
   Goldhaus Thun – Design System
   ============================================================= */

:root {
  /* Brand gold (aus der bestehenden Seite übernommen) */
  --gold-bright: #dec92f;   /* helles Gold  */
  --gold-amber:  #dd9933;   /* Bernstein    */
  --gold:        #c8a13a;   /* satt, gut lesbar */
  --gold-deep:   #a97d1e;   /* für Text auf Hell */
  --gold-soft:   #f3e9c8;   /* zarte Fläche */
  --gold-grad:   linear-gradient(135deg, #a97d1e 0%, #e6cf6a 42%, #dd9933 100%);

  /* Neutrals */
  --ink:      #17140d;      /* fast schwarz, warm */
  --ink-2:    #2a251b;
  --ink-soft: #4c473c;
  --muted:    #7a7365;
  --paper:    #ffffff;
  --cream:    #faf7ef;      /* warmes Off-White */
  --cream-2:  #f3ecdd;
  --line:     rgba(23, 20, 13, 0.10);
  --line-2:   rgba(23, 20, 13, 0.06);

  /* Typo */
  --serif: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --sans:  "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Maße */
  --container: 1160px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(23,20,13,.06), 0 6px 20px rgba(23,20,13,.05);
  --shadow-md: 0 4px 12px rgba(23,20,13,.08), 0 24px 60px rgba(23,20,13,.10);
  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 76px;
}

/* ------------------------------- Reset-ish ---------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: .2px; }
p { margin: 0; }

/* ------------------------------- Layout ------------------------ */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: .7em;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: var(--gold); opacity: .8; }
.section-head { max-width: 46rem; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); margin-top: .5rem; }
.section-head p { color: var(--ink-soft); margin-top: 1rem; font-size: 1.08rem; }
.text-gold {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ------------------------------- Buttons ----------------------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: .85em 1.5em; border-radius: 999px; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn svg { width: 1.15em; height: 1.15em; }
.btn--gold { --btn-bg: transparent; color: var(--ink); position: relative; background: var(--gold-grad); }
.btn--gold:hover { filter: brightness(1.04); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-deep); }
.btn--light { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.28); backdrop-filter: blur(4px); }
.btn--light:hover { background: rgba(255,255,255,.18); }

/* ------------------------------- Header ------------------------ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header.scrolled { background: rgba(255,255,255,.86); backdrop-filter: saturate(160%) blur(12px); box-shadow: 0 1px 0 var(--line); }

.brand { display: inline-flex; align-items: center; gap: .7em; color: #fff; transition: color .35s var(--ease); }
.scrolled .brand { color: var(--ink); }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__name { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1; letter-spacing: .3px; }
.brand__sub { display: block; font-family: var(--sans); font-size: .58rem; letter-spacing: .28em; text-transform: uppercase; opacity: .8; margin-top: .35em; font-weight: 600; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a { color: rgba(255,255,255,.9); font-weight: 500; font-size: .96rem; padding: .5em .85em; border-radius: 999px; transition: color .25s, background .25s; }
.scrolled .nav a { color: var(--ink-soft); }
.nav a:hover { color: #fff; background: rgba(255,255,255,.12); }
.scrolled .nav a:hover { color: var(--gold-deep); background: var(--gold-soft); }
.nav .btn { margin-left: 8px; }
.scrolled .nav .btn--light { background: var(--ink); color: #fff; border-color: transparent; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; padding: 10px; color: currentColor; }
.nav-toggle span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle span + span { margin-top: 5px; }

/* ------------------------------- Hero -------------------------- */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  color: #fff; overflow: hidden;
  background: radial-gradient(120% 90% at 50% -10%, #33301f 0%, #1c1912 45%, #131009 100%);
  padding-top: var(--header-h);
}
.hero::before { /* Gold-Glow */
  content: ""; position: absolute; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  top: -20%; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(222,201,47,.16) 0%, rgba(221,153,51,.06) 40%, transparent 68%);
  pointer-events: none;
}
.hero::after { /* feine Textur-Vignette */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 120% at 50% 120%, rgba(0,0,0,.5), transparent 60%);
}
.hero .container { position: relative; z-index: 2; text-align: center; padding-block: 60px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em;
  padding: .5em 1.05em; border-radius: 999px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  color: #fff; margin-bottom: 2rem;
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #8a8a8a; box-shadow: 0 0 0 0 rgba(0,0,0,0); }
.hero__badge.is-open .dot { background: #5fd07f; box-shadow: 0 0 0 4px rgba(95,208,127,.18); }
.hero__badge.is-closed .dot { background: #e0863f; }
.hero__mark { width: clamp(64px, 12vw, 104px); height: auto; margin: 0 auto 1.4rem; }
.hero h1 { font-size: clamp(3rem, 1.8rem + 8vw, 6.5rem); line-height: .98; letter-spacing: .5px; }
.hero h1 em { font-style: normal; }
.hero__tagline { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 1rem + 1.6vw, 2rem); color: var(--gold-bright); margin-top: .6rem; }
.hero__sub { max-width: 40rem; margin: 1.6rem auto 0; color: rgba(255,255,255,.82); font-size: 1.1rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 2.4rem; }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; color: rgba(255,255,255,.6); animation: bob 2.4s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translate(-50%, 0);} 50% { transform: translate(-50%, 8px);} }

/* ------------------------------- Services ---------------------- */
.services { background: var(--paper); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.card {
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-soft); }
.card__icon {
  width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--gold-soft), #fff); border: 1px solid var(--gold-soft);
  color: var(--gold-deep); margin-bottom: 20px;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { font-size: 1.5rem; }
.card p { color: var(--muted); margin-top: .5rem; font-size: .98rem; line-height: 1.6; }

/* ------------------------------- Gold-Ankauf ------------------- */
.buyback { position: relative; color: #fff; overflow: hidden;
  background: radial-gradient(120% 120% at 100% 0%, #2c2718 0%, #1a1710 55%, #120f08 100%); }
.buyback::before { content:""; position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(60% 80% at 8% 100%, rgba(221,153,51,.14), transparent 60%); }
.buyback .container { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.buyback h2 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); }
.buyback p { color: rgba(255,255,255,.82); margin-top: 1.1rem; font-size: 1.14rem; max-width: 34rem; }
.buyback__cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 14px; }
.buyback__aside { position: relative; display: grid; place-items: center; }

/* ------------------------------- Marken ------------------------ */
.brands { background: var(--cream); }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.brand-chip {
  background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  padding: 26px 22px; min-height: 104px; display: flex; flex-direction: column; justify-content: center;
  text-align: left; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.brand-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--gold-soft); }
.brand-chip .brand-chip__name { font-family: var(--serif); font-size: 1.4rem; line-height: 1.1; }
.brand-chip .brand-chip__tag { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; margin-bottom: .5rem; }

/* ------------------------------- Kontakt ----------------------- */
.contact { background: var(--paper); }
.contact .container { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-card {
  background: var(--cream); border: 1px solid var(--line-2); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px);
}
.contact h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.info-list { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .ic { width: 44px; height: 44px; flex: none; border-radius: 11px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line-2); color: var(--gold-deep); }
.info-list .ic svg { width: 22px; height: 22px; }
.info-list .lbl { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.info-list .val { font-size: 1.12rem; color: var(--ink); font-weight: 500; }
.info-list a.val:hover { color: var(--gold-deep); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hours { width: 100%; border-collapse: collapse; margin-top: 1.4rem; }
.hours th { text-align: left; font-family: var(--sans); font-weight: 700; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding-bottom: 10px; }
.hours td { padding: 13px 0; border-top: 1px solid var(--line-2); font-size: 1.05rem; }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.hours tr.is-today td { color: var(--ink); font-weight: 700; }
.hours tr.is-today td:first-child { position: relative; }
.hours tr.is-today td:first-child::before { content: ""; position: absolute; left: -14px; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.hours .closed { color: var(--muted); }
.hours-note { margin-top: 1.4rem; font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--gold-deep); }
.status-pill { display: inline-flex; align-items: center; gap: .55em; font-size: .82rem; font-weight: 600; padding: .4em .9em; border-radius: 999px; margin-top: 1rem; }
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; }
.status-pill.is-open { background: rgba(95,208,127,.14); color: #2f7d47; }
.status-pill.is-open .dot { background: #4fb56a; }
.status-pill.is-closed { background: rgba(224,134,63,.12); color: #a5591f; }
.status-pill.is-closed .dot { background: #dd9933; }

/* ------------------------------- Footer ------------------------ */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding-block: 54px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: space-between; }
.site-footer .brand { color: #fff; }
.site-footer__meta { font-size: .9rem; }
.site-footer a:hover { color: var(--gold-bright); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: .95rem; }
.site-footer .legal { width: 100%; border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px; margin-top: 8px; font-size: .82rem; color: rgba(255,255,255,.5); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* ------------------------------- Reveal ------------------------ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }

/* ------------------------------- Responsive -------------------- */
@media (max-width: 900px) {
  .buyback .container { grid-template-columns: 1fr; gap: 40px; }
  .buyback__aside { order: -1; }
  .contact .container { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(255,255,255,.97); backdrop-filter: blur(12px); padding: 16px clamp(20px,5vw,48px) 26px;
    box-shadow: 0 20px 40px rgba(0,0,0,.12); transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { color: var(--ink-soft); font-size: 1.05rem; padding: .7em .6em; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
  .scrolled .nav .btn--light, .nav .btn--light { background: var(--ink); color: #fff; border-color: transparent; }
  .nav-toggle { display: block; color: #fff; }
  .scrolled .nav-toggle { color: var(--ink); }
  .site-header.menu-open { background: rgba(255,255,255,.97); backdrop-filter: blur(12px); }
  .site-header.menu-open .brand, .site-header.menu-open .nav-toggle { color: var(--ink); }
}

/* =============================================================
   Maskottchen – Bienen
   ============================================================= */
@keyframes beeFloat { 0%,100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-12px) rotate(1.5deg); } }

.head-mascot { display: grid; grid-template-columns: 1fr minmax(170px, 290px); gap: clamp(24px, 4vw, 56px); align-items: center; margin-bottom: clamp(36px, 5vw, 60px); }
.head-mascot .section-head { margin-bottom: 0; }

/* Geteilte Basis aller Sektions-Bienen; je Platzierung nur die Unterschiede
   (Grösse, Position, Dauer, Schattenstärke). Reduced-motion deckt bereits die
   globale *-Regel oben ab. */
.head-mascot__bee, .hero__bee, .buyback__bee, .contact__bee {
  height: auto; animation: beeFloat 6s var(--ease) infinite;
  filter: drop-shadow(0 16px 22px rgba(23,20,13,.16));
}
.head-mascot__bee { width: 100%; }
.hero__bee { position: absolute; right: clamp(6px, 4vw, 56px); bottom: 0; width: clamp(116px, 19vw, 244px);
  z-index: 2; pointer-events: none; animation-duration: 6.5s;
  filter: drop-shadow(0 18px 26px rgba(0,0,0,.35)); }
.buyback__bee { position: relative; z-index: 1; width: min(330px, 76vw);
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.4)); }
.contact__bee { width: clamp(160px, 22vw, 220px); margin-top: 24px; animation-duration: 6.5s; }

.buyback__aside::before { /* sanfter Gold-Schein hinter der Biene */
  content: ""; position: absolute; inset: 0; margin: auto; width: 82%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(230,207,106,.28) 0%, rgba(221,153,51,.12) 42%, transparent 70%);
  filter: blur(6px); pointer-events: none; z-index: 0; }

@media (max-width: 820px) {
  .head-mascot { grid-template-columns: 1fr; }
  .head-mascot__bee { max-width: 210px; margin: 2px auto 0; }
  .hero__bee { width: clamp(96px, 15vw, 150px); }
}
/* Auf schmalen Screens ausblenden, damit sie die Buttons nicht überlagert –
   die Bienen in den Sektionen bleiben sichtbar. */
@media (max-width: 680px) { .hero__bee { display: none; } }

/* Einflug-Biene beim Laden (bottom-left -> top-right) */
.flybee { position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none; will-change: transform; display: none; }
.flybee--run { display: block; animation: flyPath 5.2s var(--ease) forwards; }
.flybee--run .flybee__wing { transform-box: view-box; transform-origin: 33px 16px;
  animation: wingBeat .09s ease-in-out infinite alternate; }
.flybee--run .flybee__wing--front { animation-delay: .045s; }
@keyframes flyPath {
  0%   { transform: translate(-14vw, 90vh) rotate(-15deg) scale(.85); opacity: 0; }
  8%   { opacity: 1; }
  28%  { transform: translate(20vw, 58vh) rotate(-22deg) scale(1); }
  52%  { transform: translate(48vw, 44vh) rotate(-10deg) scale(1); }
  76%  { transform: translate(76vw, 22vh) rotate(-22deg) scale(1); }
  93%  { opacity: 1; }
  100% { transform: translate(114vw, -14vh) rotate(-15deg) scale(.85); opacity: 0; }
}
@keyframes wingBeat {
  0%   { transform: rotate(-8deg) scaleY(.72); }
  100% { transform: rotate(12deg) scaleY(1.1); }
}
@media (prefers-reduced-motion: reduce) { .flybee { display: none !important; } }
