/*
 Theme Name:   Seegfui GP Child
 Theme URI:    https://seegfui.de
 Template:     generatepress
 Description:  Seegfui brand child theme — Mooinzen-Stil (SEE-60). Tokens aus shop-design/tokens.css,
               Fonts Inter + Caveat selbst gehostet (DSGVO). Kein Google-CDN.
 Author:       Seegfui
 Version:      1.0.0
*/

/* ================================================================
   SELF-HOSTED FONTS  (Inter + Caveat, OFL — kein Google-CDN)
   Dateien werden durch deploy-theme.sh in fonts/ abgelegt.
   ================================================================ */
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-v13-latin-regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-v13-latin-500.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-v13-latin-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-v13-latin-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('fonts/inter-v13-latin-800.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Caveat';
  src: url('fonts/caveat-v18-latin-600.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Caveat';
  src: url('fonts/caveat-v18-latin-700.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ================================================================
   DESIGN TOKENS  (1:1 aus shop-design/tokens.css — SEE-19)
   ================================================================ */
:root {
  /* Flächen */
  --c-bg:           #FFFFFF;
  --c-bg-soft:      #F6F5F2;
  --c-bg-muted:     #ECEAE3;
  --c-stage:        #F1ECE0;

  /* Text */
  --c-ink:          #1C1C1C;
  --c-ink-soft:     #6B6B6B;

  /* Linien */
  --c-line:         #E3E1DA;

  /* Akzent: See-Blau — NUR Kaufen-Button & aktive Links */
  --c-accent:       #2F6F9E;
  --c-accent-hover: #245A80;
  --c-accent-wash:  #EAF1F6;

  /* Typografie */
  --font-sans:   "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script: "Caveat", "Segoe Script", cursive;

  --fs-hero:    clamp(2.5rem, 6vw, 4rem);
  --fs-kicker:  2rem;
  --fs-h2:      2.25rem;
  --fs-h3:      1.5rem;
  --fs-lead:    1.25rem;
  --fs-body:    1.0625rem;
  --fs-small:   0.875rem;
  --fs-eyebrow: 0.8125rem;
  --fs-btn:     0.9375rem;

  /* Layout */
  --container: 1200px;
  --gutter:    24px;
  --pad-x:     clamp(20px, 5vw, 64px);
  --section-y: clamp(64px, 9vw, 128px);
  --radius:    6px;
  --measure:   68ch;
}

/* ================================================================
   GENERATEPRESS OVERRIDES — Global
   ================================================================ */
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--c-accent); }

p { max-width: var(--measure); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--c-ink);
}
h1 { font-size: var(--fs-hero); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
h2 { font-size: var(--fs-h2);   font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
h3 { font-size: var(--fs-h3);   font-weight: 600; line-height: 1.25; }

/* GeneratePress container */
.grid-container { max-width: var(--container) !important; padding-left: var(--pad-x); padding-right: var(--pad-x); }

/* ================================================================
   HEADER — sticky, transparent blur, Haarlinie unten
   ================================================================ */
.site-header {
  position: sticky !important;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line) !important;
  box-shadow: none !important;
}
.site-header .grid-container { height: 72px; display: flex; align-items: center; }

/* Logo */
.site-branding { display: flex; align-items: center; }
.site-branding .site-title a,
.site-branding .site-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.3125rem;
  letter-spacing: -0.01em;
  color: var(--c-ink) !important;
  text-decoration: none !important;
}

/* Navigation */
.main-navigation a {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--c-ink) !important;
  text-decoration: none !important;
  padding: 6px 0 !important;
}
.main-navigation a:hover { color: var(--c-accent) !important; }
.main-navigation .current-menu-item > a { color: var(--c-accent) !important; }

/* Entfernt: Drop-Shadow, Border, GP-Defaults */
.site-header, .main-navigation ul { box-shadow: none !important; border: none !important; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: var(--c-bg-soft) !important;
  border-top: 1px solid var(--c-line);
  font-size: var(--fs-small);
  color: var(--c-ink-soft);
}
.site-footer a { color: var(--c-ink-soft); }
.site-footer a:hover { color: var(--c-accent); }
.footer-bar { background: var(--c-ink) !important; color: rgba(255,255,255,.7); font-size: var(--fs-small); }
.footer-bar a { color: rgba(255,255,255,.7); }

/* ================================================================
   WOOCOMMERCE OVERRIDES — Mooinzen-Prinzip
   Einziger See-Blau-Akzent: „In den Warenkorb"-Button
   ================================================================ */

/* Produkt-Karten: kein Schatten, keine Border, sanfte Hover */
ul.products li.product,
.wc-block-product-template .wc-block-grid__product {
  box-shadow: none !important;
  border: none !important;
}
ul.products li.product a img {
  transition: opacity .2s ease;
  background: var(--c-stage);
}
ul.products li.product:hover a img { opacity: 0.88; }

/* Kein Sale-Flash, kein Out-of-Stock-Banner visuell störend */
ul.products li.product .onsale { display: none !important; }

/* Produkttitel + Preis */
ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--font-sans) !important;
  font-weight: 600 !important;
  font-size: 1.0625rem !important;
  color: var(--c-ink) !important;
  padding: 12px 0 4px !important;
}
ul.products li.product .price {
  font-family: var(--font-sans) !important;
  font-weight: 600 !important;
  font-size: var(--fs-lead) !important;
  color: var(--c-ink) !important;
}

/* Einziger Blau-Button: In-den-Warenkorb */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #payment #place_order,
.wc-block-components-button,
.wp-block-button__link {
  background: var(--c-accent) !important;
  color: #fff !important;
  font-family: var(--font-sans) !important;
  font-weight: 600 !important;
  font-size: var(--fs-btn) !important;
  letter-spacing: 0.04em !important;
  padding: 14px 28px !important;
  border-radius: var(--radius) !important;
  border: 0 !important;
  box-shadow: none !important;
  transition: background .15s ease !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce #payment #place_order:hover {
  background: var(--c-accent-hover) !important;
  color: #fff !important;
}

/* Varianten-Swatches */
.woocommerce .variations select { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 10px 14px; font-family: var(--font-sans); }

/* ================================================================
   STARTSEITE — Custom Page Template Sections
   ================================================================ */

/* Shared section spacing */
.sg-section { padding: var(--section-y) 0; }
.sg-wrap   { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }

.sg-eyebrow {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-ink-soft);
  display: block;
  margin-bottom: 10px;
}

.sg-section-head { max-width: 60ch; margin-bottom: 46px; }
.sg-section-head h2 { margin-top: 10px; }

/* ---- Hero ---- */
.sg-hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  background-color: #2a3c48;
  background-position: center 38%;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
}
.sg-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,28,34,.06) 0%, rgba(20,28,34,0) 38%, rgba(20,28,34,.52) 100%);
}
.sg-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x) clamp(48px, 7vw, 86px);
}
.sg-hero-kicker {
  font-family: var(--font-script);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.9rem);
  color: #fff;
  opacity: .96;
  line-height: 1;
  display: block;
}
/* Hero-Logo (helle Wortmarke mit Herz als i-Punkt) statt Text-Kicker (SEE-19) */
.sg-hero-logo {
  display: block;
  height: clamp(54px, 8vw, 104px);
  width: auto;
  margin-bottom: clamp(10px, 1.5vw, 18px);
}
.sg-hero h1 {
  color: #fff;
  margin: .1em 0 .35em;
  max-width: 14ch;
  text-shadow: 0 2px 24px rgba(10,18,24,.35);
}
.sg-hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  max-width: 42ch;
  margin-bottom: 30px;
  color: rgba(255,255,255,.92);
}

/* ---- Kollektionen-Kacheln ---- */
.sg-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.sg-tile {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
}
.sg-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.sg-tile:hover img { transform: scale(1.03); }
.sg-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,28,34,0) 40%, rgba(20,28,34,.58) 100%);
}
.sg-tile-label {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 28px 30px;
}
.sg-tile-label .e {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
  display: block;
}
.sg-tile-label h3 {
  font-size: 1.7rem;
  font-weight: 700;
  margin-top: 4px;
  color: #fff;
}

/* ---- Bestseller-Grid ---- */
.sg-soft { background: var(--c-bg-soft); }
.sg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.sg-card { text-decoration: none; color: var(--c-ink); }
.sg-card-frame {
  aspect-ratio: 4 / 5;
  background: var(--c-stage);
  overflow: hidden;
}
.sg-card-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transition: opacity .2s;
}
.sg-card:hover .sg-card-frame img { opacity: .88; }
.sg-card-meta { padding: 16px 0 0; }
.sg-card-title { font-weight: 600; font-size: 1.0625rem; }
.sg-card-sub { color: var(--c-ink-soft); font-size: var(--fs-small); margin-top: 2px; }
.sg-card-price { font-weight: 600; margin-top: 8px; }

/* ---- Markenstory ---- */
.sg-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.sg-story-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-bg-muted);
}
.sg-story-img img { width: 100%; height: 100%; object-fit: cover; }
.sg-story-text p { color: var(--c-ink-soft); margin-top: 16px; max-width: 52ch; }

/* ---- Trust-Streifen ---- */
.sg-trust {
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.sg-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.sg-trust-item {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--c-ink);
  padding: 32px 0;
}

/* ---- Primär-Button (wiederverwendbar) ---- */
.sg-btn {
  display: inline-block;
  background: var(--c-accent);
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-btn);
  letter-spacing: 0.04em;
  padding: 15px 30px;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  transition: background .15s ease;
  text-decoration: none;
}
.sg-btn:hover { background: var(--c-accent-hover); color: #fff; }
.sg-btn:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .sg-grid { grid-template-columns: repeat(2, 1fr); }
  .sg-story-grid { grid-template-columns: 1fr; }
  .sg-trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sg-tiles { grid-template-columns: 1fr; }
  .sg-grid  { grid-template-columns: 1fr; }
  .sg-trust-grid { grid-template-columns: 1fr; text-align: left; }
  .sg-trust-item { padding: 16px 0; border-bottom: 1px solid var(--c-line); }
  .sg-trust-item:last-child { border-bottom: none; }
}

/* ================================================================
   SEE-19 — Startseiten-Template korrekt aufbauen (Layout-Fix)
   Ursache der "zerschossenen" Seite: GeneratePress setzt
   #content.site-content auf display:flex (row). Die full-bleed
   Template-Sections wurden dadurch zu schmalen Flex-Spalten, und
   das contained .grid-container kappte die Breite. Hier scoped auf
   die Startseite zurückgesetzt, damit Hero & Sektionen voll greifen.
   ================================================================ */
.page-template-page-startseite #content.site-content {
  display: block;          /* Sektionen wieder vertikal stapeln */
  width: 100%;
  max-width: 100%;
  padding: 0;
}
.page-template-page-startseite #page,
.page-template-page-startseite #page.grid-container {
  max-width: 100% !important;   /* volle Breite, Hero darf full-bleed sein */
  padding: 0 !important;
}
/* Custom-Logo im Header: Handschrift-Wortmarke mit Herz, etwas größer (SEE-19) */
.site-logo .header-image,
.site-header .is-logo-image { max-height: 58px; width: auto; }

/* Doppelte Wortmarke im Header entfernen: GeneratePress zeigt Logo-Bild UND
   Text-Titel ("Seegfui" zweimal). Logo-Bild (Handschrift) bleibt sichtbar; der
   Text-Titel wird nur visuell ausgeblendet, bleibt aber für SEO/Screenreader. (SEE-19) */
.site-header .site-branding .main-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Header-Navigation: saubere Abstände zwischen den Menüpunkten (SEE-19).
   GeneratePress setzt das Item-Padding per inline Dynamic-CSS -> !important nötig. */
.main-navigation .main-nav ul li a { padding-left: 18px !important; padding-right: 18px !important; }
.main-navigation .main-nav ul li:last-child a { padding-right: 0 !important; }
