/*
Theme Name: TonPoesie
Theme URI: https://tonpoesie.de/
Author: TonPoesie
Author URI: https://tonpoesie.de/
Description: Individuelles Theme fuer das Keramikatelier TonPoesie in Merzig. Handgemachte Keramik, Workshops und individuelle Auftraege. Eigenstaendig, ohne externe Dienste (DSGVO-freundlich), mit integriertem Kontakt- und Anmeldeformular.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tonpoesie
*/

/* ============================================================
   1. DESIGN-TOKENS
   Farben, Schriften und Abstaende an einer zentralen Stelle.
   Zum Umfaerben einfach hier die Werte anpassen.
   ============================================================ */
:root {
  /* Farben */
  --paper:      #f5f1ea;   /* warmer Hintergrund   */
  --paper-alt:  #ece5d8;   /* Sektion mit Abhebung */
  --card:       #fffcf7;   /* Karten / Boxen       */
  --ink:        #2c2721;   /* Ueberschriften       */
  --ink-2:      #4a443c;   /* Fliesstext           */
  --muted:      #786f62;   /* Sekundaertext        */
  --clay:       #a5735c;   /* Akzent (Ton)         */
  --clay-2:     #8c5c45;   /* Akzent dunkler       */
  --clay-tint:  #efe1d7;   /* heller Akzentgrund   */
  --line:       #e4dccf;   /* feine Linien         */
  --line-2:     #d6ccbb;   /* Raender              */

  /* Schriften: bewusst systemeigen -> keine externen Anfragen (DSGVO) */
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "Times New Roman", serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  /* Radien & Schatten */
  --r:      14px;
  --r-sm:   9px;
  --r-lg:   24px;
  --shadow:    0 10px 30px rgba(60, 45, 30, .09);
  --shadow-sm: 0 3px 12px rgba(60, 45, 30, .06);

  /* Layout */
  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
}

/* ============================================================
   2. RESET / GRUNDLAGEN
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: var(--clay-2); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--clay); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--clay); color: #fff; }

:focus-visible {
  outline: 2.5px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================================
   3. LAYOUT-HILFEN
   ============================================================ */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 9vw, 116px); }
.section--alt { background: var(--paper-alt); }
.section--tight { padding-block: clamp(44px, 6vw, 72px); }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 30px; height: 1.5px;
  background: var(--clay);
  display: inline-block;
}
.eyebrow--center { justify-content: center; }

.lead { font-size: 1.14rem; color: var(--ink-2); }

.section-head { max-width: 640px; }
.section-head--center { margin-inline: auto; text-align: center; }

h1 { font-size: clamp(2.5rem, 6vw, 4.3rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: .82em 1.6em;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .96rem;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  border: 1.6px solid transparent;
  transition: transform .18s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
  line-height: 1;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--clay); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--clay-2); color: #fff; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--clay); color: var(--clay-2); }

.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   5. KOPFZEILE / NAVIGATION
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 241, 234, .86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; }
.brand img { width: 42px; height: 42px; border-radius: 50%; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .01em;
}
.brand:hover .brand__name { color: var(--ink); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a {
  font-family: var(--sans);
  font-size: .96rem;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding: .3em 0;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1.5px;
  background: var(--clay);
  transition: width .25s ease;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--ink); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   6. HERO (Startseite)
   ============================================================ */
.hero { padding-block: clamp(56px, 8vw, 104px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 { margin-bottom: .35em; }
.hero .lead { max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-media { position: relative; }
.hero-media img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 5 / 4;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-lg);
  z-index: -1;
}

/* ============================================================
   7. LEISTUNGEN / KARTEN
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 3vw, 34px);
  margin-top: clamp(36px, 5vw, 56px);
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-card__img { aspect-ratio: 1 / 1; overflow: hidden; }
.feature-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.feature-card:hover .feature-card__img img { transform: scale(1.05); }
.feature-card__body { padding: 1.6rem 1.6rem 1.9rem; }
.feature-card h3 { margin-bottom: .5rem; }
.feature-card p { color: var(--muted); font-size: .98rem; margin: 0; }

/* Social-Zeile */
.social-row {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  flex-wrap: wrap;
  margin-top: clamp(38px, 5vw, 58px);
}
.social-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6em 1.15em;
  border: 1.5px solid var(--line-2);
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--card);
}
.social-chip:hover { border-color: var(--clay); color: var(--clay-2); }
.social-chip svg { width: 18px; height: 18px; }

/* ============================================================
   8. UEBER TONPOESIE
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: clamp(30px, 5vw, 68px);
  align-items: center;
}
.about-portrait img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.about-text h2 { margin-bottom: .3em; }
.about-text .signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--clay-2);
  margin: 0 0 1rem;
}

/* Galerie */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: clamp(34px, 5vw, 54px);
}
.gallery figure { margin: 0; overflow: hidden; border-radius: var(--r-sm); box-shadow: var(--shadow-sm); }
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  transition: transform .5s ease;
}
.gallery figure:hover img { transform: scale(1.06); }
.gallery figure:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery figure:nth-child(1) img { aspect-ratio: 1 / 1; }
.gallery figure:nth-child(6) { grid-column: span 2; }
.gallery figure:nth-child(6) img { aspect-ratio: 2 / 1; }

/* ============================================================
   9. FORMULARE
   ============================================================ */
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 4vw, 46px);
  box-shadow: var(--shadow-sm);
  max-width: 680px;
}
.form-card--center { margin-inline: auto; }
.form-row { margin-bottom: 1.25rem; }
.form-row:last-of-type { margin-bottom: 0; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

label.field-label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .45rem;
}
label.field-label .req { color: var(--clay); }

.field {
  width: 100%;
  padding: .82em 1em;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field::placeholder { color: #b3a998; }
.field:focus {
  outline: none;
  border-color: var(--clay);
  box-shadow: 0 0 0 3px var(--clay-tint);
}
textarea.field { resize: vertical; min-height: 130px; }

.check-row {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  font-size: .92rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
  line-height: 1.5;
}
.check-row input[type="checkbox"] {
  width: 20px; height: 20px;
  margin-top: 1px;
  accent-color: var(--clay);
  flex-shrink: 0;
  cursor: pointer;
}

.form-note { font-size: .82rem; color: var(--muted); margin: 0 0 1.1rem; }

/* Honeypot-Feld (Spamschutz) unsichtbar */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Statusmeldungen */
.form-status { margin-top: 1.1rem; border-radius: var(--r-sm); padding: .9em 1.1em; font-size: .95rem; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-success { background: #e8efe4; color: #3f5537; border: 1px solid #cadcc0; }
.form-status.is-error   { background: #f6e4de; color: #8a3f2c; border: 1px solid #e6c4b8; }

/* ============================================================
   10. KONTAKT-DETAILS
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 30px);
  margin-top: clamp(30px, 4vw, 46px);
}
.contact-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.7rem 1.6rem;
  text-align: center;
}
.contact-item__icon {
  width: 46px; height: 46px;
  margin: 0 auto 1rem;
  display: grid; place-items: center;
  background: var(--clay-tint);
  border-radius: 50%;
  color: var(--clay-2);
}
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item h4 { font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .4rem; }
.contact-item a, .contact-item p { font-size: 1.05rem; color: var(--ink); margin: 0; }
.contact-item a:hover { color: var(--clay-2); }

/* ============================================================
   11. WORKSHOP-SEITE
   ============================================================ */
.page-hero { padding-block: clamp(52px, 7vw, 92px); text-align: center; }
.page-hero .wrap { max-width: 780px; }
.page-hero h1 { margin-bottom: .4em; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.check-list li { position: relative; padding-left: 2rem; color: var(--ink-2); }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: .5em;
  width: 12px; height: 7px;
  border-left: 2px solid var(--clay);
  border-bottom: 2px solid var(--clay);
  transform: rotate(-45deg);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 2rem;
}
.detail-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem 1.3rem;
  text-align: center;
}
.detail-box__label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); font-weight: 600; margin-bottom: .5rem; }
.detail-box__value { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); line-height: 1.35; }

.notice {
  background: var(--clay-tint);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 1.2rem 1.5rem;
  text-align: center;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--clay-2);
  margin-block: 2.2rem;
}

/* Ausklappbare AGB */
.agb { max-width: 760px; margin-inline: auto; }
.agb details {
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--card);
  padding: 0 1.4rem;
  margin-top: 1.5rem;
}
.agb summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  padding: 1.2rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.agb summary::-webkit-details-marker { display: none; }
.agb summary::after { content: "+"; font-size: 1.6rem; color: var(--clay); transition: transform .2s ease; }
.agb details[open] summary::after { transform: rotate(45deg); }
.agb__body { padding-bottom: 1.5rem; color: var(--ink-2); }
.agb__body h4 { font-family: var(--sans); font-size: .95rem; color: var(--clay-2); margin: 1.3rem 0 .5rem; letter-spacing: .02em; }
.agb__body ul { margin: 0 0 .5rem; padding-left: 1.2rem; }
.agb__body li { margin-bottom: .35rem; }

/* ============================================================
   12. SHOP-SEITE
   ============================================================ */
.shop-lookbook {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(30px, 4vw, 48px);
}
.shop-lookbook figure { margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); position: relative; }
.shop-lookbook img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s ease; }
.shop-lookbook figure:hover img { transform: scale(1.05); }
.shop-lookbook figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.2rem .9rem;
  background: linear-gradient(to top, rgba(30,24,18,.72), transparent);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.05rem;
}
.shop-cta { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; margin-top: 2.4rem; }

/* ============================================================
   13. INHALTSSEITEN (Impressum / Datenschutz)
   ============================================================ */
.prose { max-width: 760px; }
.prose h2 { margin-top: 0; }
.prose h3 { margin-top: 2.2rem; font-size: 1.3rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .5rem; }
.prose strong { color: var(--ink); }
.todo-box {
  background: #fbf3d9;
  border: 1px solid #ecdca6;
  border-left: 4px solid var(--clay);
  border-radius: var(--r-sm);
  padding: 1.2rem 1.4rem;
  margin: 1.6rem 0;
  font-size: .95rem;
  color: #6b5a2e;
}
.todo-box strong { color: #6b5a2e; }

/* ============================================================
   14. FUSSZEILE
   ============================================================ */
.site-footer {
  background: #26211b;
  color: #cfc6b8;
  padding-block: clamp(48px, 6vw, 72px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
}
.footer-brand { display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.footer-brand img { width: 40px; height: 40px; border-radius: 50%; }
.footer-brand span { font-family: var(--serif); font-size: 1.3rem; color: #fff; }
.site-footer p { color: #b7ad9d; font-size: .96rem; }
.footer-col h4 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col a, .footer-col p { color: #cfc6b8; font-size: .96rem; display: block; margin-bottom: .55rem; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: .8rem; margin-top: .3rem; }
.footer-social a {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #cfc6b8;
  margin: 0;
}
.footer-social a:hover { background: var(--clay); border-color: var(--clay); color: #fff; }
.footer-social svg { width: 19px; height: 19px; }
.footer-bottom {
  margin-top: clamp(34px, 5vw, 52px);
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .88rem;
  color: #9a9082;
}
.footer-bottom a { color: #9a9082; }
.footer-bottom a:hover { color: #fff; }

/* ============================================================
   15. RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .hero-media::after { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { max-width: 380px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand-col { grid-column: 1 / -1; }

  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.2rem;
    transform: translateY(-120%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    box-shadow: var(--shadow);
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { width: 100%; padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav a::after { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .features-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .shop-lookbook { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery figure:nth-child(1) { grid-column: span 2; grid-row: auto; }
  .gallery figure:nth-child(6) { grid-column: span 2; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* Bewegung reduzieren, wenn gewuenscht */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
