/*
Theme Name: House of Hedy
Theme URI: https://houseofhedy.de
Author: Jessie / House of Hedy
Description: Warm-editoriales Theme in Butter, Puderblau und Salbei. Asteria fuer Headlines, Cormorant Garamond fuer Serifen-Akzente, Modernline fuer Handschrift.
Version: 1.0
License: Proprietaer (enthaelt lizenzierte Fonts Asteria & Modernline)
Text Domain: houseofhedy
*/

/* ============================================================
   HOUSE OF HEDY — Stylesheet
   Warm & editorial. Keine externen Fonts (DSGVO-sicher):
   Serifen-Headlines über System-Schriften (Georgia-Stack).
   ============================================================ */

/* ------------------------------------------------------------
   ASTERIA — selbst gehostet aus dem Ordner "fonts" (DSGVO-sicher).
------------------------------------------------------------ */
@font-face {
  font-family: "Asteria";
  src: url("fonts/Asteria.woff2") format("woff2"),
       url("fonts/Asteria.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Modernline";
  src: url("fonts/Modernline.woff2") format("woff2"),
       url("fonts/Modernline.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Cormorant Garamond (SIL OFL) — elegante Serife für H3, Zitate & Akzente.
   Medium (500) statt Regular, weil die Schrift sehr fein gezeichnet ist. */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-Medium.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-MediumItalic.woff2") format("woff2");
  font-weight: 400 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/CormorantGaramond-SemiBold.woff2") format("woff2");
  font-weight: 600 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette nach Vorlage "blaues Büro": warmes Weiß, Puderblau,
     Salbei-Mint, dazu ein kleiner Rosa-Akzent (die Tasse). */
  --cream: #fbfaf6;          /* warme, helle Wandfarbe */
  --sand: #e9f0f2;           /* eisblauer Sektions-Hintergrund */
  --sand-dark: #d3e0e5;      /* zarte blaue Ränder/Linien */
  --ink: #2e3a42;            /* tiefes Blaugrau statt Braun */
  --ink-soft: #5b6b75;
  --terracotta: #4a7ba6;     /* Puder-/Stahlblau: Buttons, Links, Eyebrows */
  --terracotta-dark: #3a648a;
  --blush: #dfb3a7;          /* Rosa (aktuell kaum genutzt) */
  --butter: #fbf3d7;         /* Butter Yellow als Fläche */
  --butter-deep: #e2c363;    /* kräftigeres Butter für Ornamente/Linien */
  --sage: #aac6c0;           /* Salbei-Mint der Fensterrahmen */
  --serif: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
  --display: "Asteria", "Georgia", serif;
  --hand: "Modernline", "Brush Script MT", cursive;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --maxw: 1120px;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .serif {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

/* Große Überschriften in Asteria */
h1, h2 {
  font-family: var(--display);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Akzente (em) in Headlines: ebenfalls Asteria, einheitliches Bild */
h1 em, h2 em {
  font-family: var(--display);
  font-style: normal;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.65rem; } /* Cormorant fällt optisch klein aus */

em { font-style: italic; }

a { color: var(--terracotta-dark); }

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.narrow { max-width: 720px; }

/* ---------- Kicker / Eyebrow ---------- */
.kicker {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--terracotta);
  display: block;
  margin-bottom: 14px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid var(--sand-dark);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.logo span { color: var(--terracotta); font-style: normal; }

.nav-toggle { display: none; }

.nav-toggle-label {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
  user-select: none;
  line-height: 1;
}

nav.main-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
}

nav.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--terracotta-dark);
  border-bottom-color: var(--terracotta);
}

@media (max-width: 860px) {
  .nav-toggle-label { display: block; }
  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--sand-dark);
  }
  .nav-toggle:checked ~ nav.main-nav { display: block; }
  nav.main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 12px 24px 20px;
  }
  nav.main-nav li { padding: 10px 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: var(--terracotta);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 36px;
  border: none;
  border-radius: 999px; /* weiche Pill-Form */
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn:active { transform: scale(0.98); }

.btn:hover { background: var(--terracotta-dark); }

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}

.btn.ghost:hover { background: var(--ink); color: var(--cream); }

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 100px;
  text-align: center;
  background: linear-gradient(180deg, var(--butter) 0%, var(--cream) 100%);
}

.hero h1 { max-width: 820px; margin: 0 auto 24px; }

.hero p.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto 40px;
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }

section.tinted { background: var(--sand); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }

.section-head p { color: var(--ink-soft); margin-top: 16px; }

/* Zarte Zier-Ornamente */
/* Kleine Raute als Ruhepunkt – gezielt einsetzen:
   nur bei Überschriften mit class="orn" (Faustregel: wenn danach
   Text folgt ja, wenn Bilder/Karten folgen nein). */
.orn::after {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  background: var(--butter-deep);
  transform: rotate(45deg);
  margin: 22px auto 0;
  border-radius: 1px;
}

/* Handschrift-Akzente (Modernline):
   Nur für kurze Akzente – lange Eyebrow-Zeilen bleiben klassisch
   (Großbuchstaben, gesperrt). Einsatz per class="hand" oder
   automatisch im Newsletter-Band ("Hedy Post"). */
.newsletter .kicker,
.hand {
  font-family: var(--hand);
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 1.7rem;
  font-weight: 400;
  color: var(--terracotta);
}

.newsletter .kicker {
  color: var(--terracotta-dark); /* dunkleres Blau: feine Handschrift braucht mehr Kontrast */
  font-size: 1.9rem;
}

/* ---------- Bild-Platzhalter ---------- */
.ph {
  background: linear-gradient(135deg, var(--sand) 0%, var(--sage) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-height: 280px;
  border-radius: var(--radius);
}

.ph.tall { min-height: 460px; }
.ph.square { aspect-ratio: 1 / 1; min-height: 0; }

/* ---------- Karten-Grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--sand-dark);
  border-top: 3px solid var(--butter-deep);
  display: flex;
  flex-direction: column;
}

.card .ph { min-height: 210px; border-radius: 0; }

.card-body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }

.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { color: var(--terracotta-dark); }

.card-body p { color: var(--ink-soft); font-size: 0.97rem; flex: 1; }

.card-meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--terracotta);
  font-weight: 600;
}

.card-price {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
}

.textlink {
  color: var(--terracotta-dark);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  letter-spacing: 0.05em;
}

.textlink:hover { text-decoration: underline; }

/* ---------- Editorial (Über mich, Blogartikel) ---------- */
.editorial { max-width: 720px; margin: 0 auto; }

.editorial p { margin-bottom: 1.5em; }

.editorial h2 {
  font-size: 1.9rem;
  margin: 1.8em 0 0.7em;
}

.editorial blockquote {
  font-family: var(--serif);
  font-size: 1.75rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--terracotta-dark);
  border-left: 3px solid var(--butter-deep);
  padding-left: 28px;
  margin: 2em 0;
}

.editorial .initial::first-letter {
  font-family: var(--serif);
  font-size: 3.4em;
  float: left;
  line-height: 0.85;
  padding-right: 12px;
  color: var(--terracotta);
}

.article-meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}

/* ---------- Testimonials ---------- */
.quote-card {
  background: #fff;
  border: 1px solid var(--sand-dark);
  border-top: 3px solid var(--butter-deep);
  border-radius: var(--radius);
  padding: 36px;
}

.quote-card p.q {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.quote-card p.who {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--terracotta);
  font-weight: 600;
}

/* ---------- Newsletter-Band (hell, Butter Yellow) ---------- */
.newsletter {
  background: var(--butter);
  color: var(--ink);
  text-align: center;
}

.newsletter h2 { color: var(--ink); }

.newsletter p { color: var(--ink-soft); max-width: 560px; margin: 16px auto 32px; }

.newsletter form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.newsletter input[type="email"] {
  padding: 14px 22px;
  border: 1px solid var(--butter-deep);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  font-size: 1rem;
  min-width: 280px;
}

.newsletter small { display: block; margin-top: 18px; color: var(--ink-soft); }
.newsletter small a { color: var(--terracotta-dark); }

/* ---------- Formulare ---------- */
.form-grid { display: grid; gap: 22px; }

.form-grid label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 8px;
  letter-spacing: 0.03em;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--sand-dark);
  border-radius: var(--radius);
  background: #fff;
  font-size: 1rem;
  font-family: var(--sans);
  color: var(--ink);
}

.form-grid input:focus,
.form-grid textarea:focus {
  outline: 2px solid var(--terracotta);
  border-color: var(--terracotta);
}

.checkline {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.checkline input { width: auto; margin-top: 4px; }

/* ---------- FAQ ---------- */
details.faq {
  border-bottom: 1px solid var(--sand-dark);
  padding: 20px 0;
}

details.faq summary {
  font-family: var(--serif);
  font-size: 1.4rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--butter-deep); }
details.faq[open] summary::after { content: "–"; }

details.faq p { margin-top: 14px; color: var(--ink-soft); }

/* ---------- Footer / Instagram ---------- */
.insta-band { padding: 70px 0; background: var(--sand); text-align: center; }

.insta-band h2 { font-size: 1.6rem; margin-bottom: 8px; }

.insta-band .handle {
  color: var(--terracotta-dark);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 36px;
}

.insta-grid a { display: block; position: relative; }

.insta-grid .ph { transition: opacity 0.2s; }
.insta-grid a:hover .ph { opacity: 0.75; }

@media (max-width: 860px) {
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
}

.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--sand-dark);
  color: var(--ink-soft);
  padding: 48px 0;
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.site-footer a { color: var(--terracotta-dark); text-decoration: none; margin-left: 22px; }
.site-footer a:first-child { margin-left: 0; }
.site-footer a:hover { text-decoration: underline; }

.footer-logo { font-family: var(--display); font-size: 1.15rem; color: var(--ink); }

/* ---------- Rechtstexte ---------- */
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 1.5rem; margin: 2em 0 0.6em; }
.legal p, .legal ul { margin-bottom: 1.2em; color: var(--ink-soft); }
.legal ul { padding-left: 1.4em; }
.legal .todo {
  background: #fdf0d5;
  border: 1px dashed #d8a93f;
  padding: 4px 8px;
  border-radius: var(--radius);
  font-weight: 600;
  color: #7a5b12;
}

/* ---------- Kleinigkeiten ---------- */
/* Seiten-Eröffnungen: jede Unterseite hat ihre eigene Pastell-Stimmung.
   Zuweisung per Zusatzklasse am .page-title-Div:
   pt-butter (gelb) · pt-ice (eisblau) · pt-mint (salbei) · pt-blush (rosé) */
.page-title {
  padding: 70px 0 50px;
  text-align: center;
}

.pt-butter { background: linear-gradient(180deg, var(--butter) 0%, var(--cream) 100%); }
.pt-ice    { background: linear-gradient(180deg, var(--sand) 0%, var(--cream) 100%); }
.pt-mint   { background: linear-gradient(180deg, #e7f0ec 0%, var(--cream) 100%); }
.pt-blush  { background: linear-gradient(180deg, #f9eae4 0%, var(--cream) 100%); }
.page-title p { color: var(--ink-soft); max-width: 620px; margin: 18px auto 0; }

hr.sep {
  border: none;
  border-top: 1px solid var(--sand-dark);
  max-width: 120px;
  margin: 0 auto;
}

.notice {
  background: #fdf0d5;
  border: 1px solid #e8c877;
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 0.9rem;
  color: #7a5b12;
  margin: 24px auto;
  max-width: 760px;
}


/* ============ WordPress-Spezifisches ============ */

/* Inhalt von Seiten (Gutenberg-Editor) */
.page-content { padding: 30px 0 80px; }
.page-content > .wrap > * + * { margin-top: 1.2em; }

/* Beitragsbilder */
.card img.card-thumb, .single-thumb img { width: 100%; height: 240px; object-fit: cover; display: block; }
.single-thumb img { height: auto; max-height: 480px; border-radius: var(--radius); }

/* Ausrichtungen aus dem Editor */
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.wp-block-image img { border-radius: var(--radius); }

/* Admin-Bar-Abstand fuer eingeloggte Nutzer */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Pagination im Journal */
.pagination { text-align: center; padding: 20px 0 40px; }
.pagination .page-numbers { display: inline-block; padding: 8px 14px; margin: 0 3px; border: 1px solid var(--sand-dark); border-radius: 999px; text-decoration: none; color: var(--ink); }
.pagination .page-numbers.current { background: var(--terracotta); color: #fff; border-color: var(--terracotta); }


/* Logo-Bildmarke & Porträt */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo .logo-mark { height: 46px; width: 46px; border-radius: 50%; }
.portrait-img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius);
  display: block;
}

/* Logo im Footer */
.footer-logo { display: inline-flex; align-items: center; gap: 12px; }
.footer-logo .footer-mark { height: 54px; width: 54px; border-radius: 50%; }

/* Footer zentriert: Logo als Schlusspunkt der Seite */
.site-footer .wrap {
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 22px;
}

.footer-logo {
  flex-direction: column;
  gap: 12px;
  font-size: 1.3rem;
}

.footer-logo .footer-mark { height: 72px; width: 72px; }

.site-footer a { margin: 0 11px; }
