/*
Theme Name: mein-gruss
Theme URI: https://mein-gruss.ch
Author: TB-Software (Timo Böhme)
Author URI: https://tb-software.ch
Description: Eigenes Theme für mein-gruss.ch. Aus einem Code wird ein persönlicher Moment: Grüsse als Medien-Galerie, hinterlegt an einem QR-Code. Markenneutral, warm, universell.
Version: 0.3.1
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: mein-gruss
*/

/* ============================================================
   Marken-Token
   ============================================================ */
:root {
  --korall: #E8623D;
  --korall-dunkel: #C94E2D;
  --petrol: #2F8F83;
  --petrol-dunkel: #246B62;
  --tinte: #2B2230;
  --creme: #FBF4EE;
  --creme-2: #F4E8DD;
  --weiss: #FFFFFF;
  --grau: #6B6470;
  --linie: #E7DACF;
  --radius: 16px;
  --radius-gross: 28px;
  --schatten: 0 18px 50px -24px rgba(43, 34, 48, 0.45);
  --schatten-weich: 0 10px 30px -18px rgba(43, 34, 48, 0.4);
  --max: 1160px;
  --font-titel: "Fraunces", Georgia, "Times New Roman", serif;
  --font-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ============================================================
   Grundlagen
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-text);
  color: var(--tinte);
  background: var(--creme);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--korall-dunkel); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-titel); font-weight: 600; line-height: 1.12; color: var(--tinte); margin: 0 0 .4em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -0.01em; }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 84px 0; }
.section--tight { padding: 56px 0; }
.eyebrow {
  display: inline-block; font-family: var(--font-text); font-weight: 700;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--petrol-dunkel); margin-bottom: 14px;
}
.lead { font-size: 1.2rem; color: #4a4350; max-width: 52ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 15px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--korall); color: #fff; box-shadow: var(--schatten-weich); }
.btn--primary:hover { background: var(--korall-dunkel); color: #fff; }
.btn--ghost { background: transparent; color: var(--tinte); border-color: var(--linie); }
.btn--ghost:hover { border-color: var(--korall); color: var(--korall-dunkel); }
.btn--light { background: #fff; color: var(--tinte); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 244, 238, 0.86);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--linie);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-titel); font-weight: 600; font-size: 1.28rem; color: var(--tinte); }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto;
  background: var(--korall); position: relative;
  box-shadow: inset 0 0 0 3px #fff, 0 2px 0 rgba(0,0,0,.05);
}
.brand .mark::after {
  content: ""; position: absolute; left: 7px; bottom: -5px;
  border: 7px solid transparent; border-top-color: var(--korall); border-right: 0;
}
.brand .mark-img { width: 34px; height: 34px; display: block; flex: 0 0 auto; }
.brand .dot { color: var(--petrol); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--tinte); font-weight: 500; font-size: .98rem; }
.nav a:hover { color: var(--korall-dunkel); text-decoration: none; }
.nav .btn { padding: 11px 20px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--tinte); margin: 5px 0; transition: .2s; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 72px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 54px; align-items: center; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero-badges span {
  font-size: .82rem; font-weight: 600; color: var(--petrol-dunkel);
  background: #fff; border: 1px solid var(--linie); padding: 7px 13px; border-radius: 999px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-figure { position: relative; }
.hero-figure img { border-radius: var(--radius-gross); box-shadow: var(--schatten); }
.hero-figure .qr-chip {
  position: absolute; right: -14px; bottom: -14px; width: 118px; height: 118px;
  background: #fff; border-radius: 20px; padding: 10px; box-shadow: var(--schatten);
  display: grid; place-items: center;
}
.hero-figure .qr-chip img { border-radius: 8px; box-shadow: none; }

/* ============================================================
   Nutzen / Features
   ============================================================ */
.features { background: var(--weiss); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.feature { background: var(--creme); border: 1px solid var(--linie); border-radius: var(--radius); padding: 26px; }
.feature .ico { font-size: 1.6rem; margin-bottom: 10px; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--grau); margin: 0; font-size: .98rem; }

/* So geht's */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: s; }
.step { position: relative; background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 30px 24px 24px; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: -18px; left: 24px;
  width: 40px; height: 40px; border-radius: 50%; background: var(--korall); color: #fff;
  font-family: var(--font-titel); font-weight: 600; font-size: 1.2rem;
  display: grid; place-items: center; box-shadow: var(--schatten-weich);
}
.step h3 { margin: 10px 0 6px; }
.step p { color: var(--grau); margin: 0; font-size: .98rem; }

/* Nutzungswelten */
.welten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.welt { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten-weich); }
.welt img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.welt .body { padding: 20px 22px 24px; }
.welt h3 { margin-bottom: 6px; }
.welt p { color: var(--grau); font-size: .96rem; margin: 0; }
.welt .tag { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--petrol-dunkel); margin-bottom: 8px; }

/* Beispiele */
.examples { background: var(--creme-2); }
.ex-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ex {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--linie); box-shadow: var(--schatten-weich);
}
.ex img { width: 100%; height: 100%; object-fit: cover; }
.ex .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 14px 12px;
  background: linear-gradient(to top, rgba(43,34,48,.82), rgba(43,34,48,0));
  color: #fff; font-weight: 600; font-size: .98rem;
}
.ex--placeholder { display: grid; place-items: center; color: var(--grau); font-weight: 600; text-align: center; padding: 16px; background: #fff; }
a.ex { text-decoration: none; display: block; transition: transform .15s ease, box-shadow .15s ease; }
a.ex:hover { transform: translateY(-3px); box-shadow: 0 16px 36px -20px rgba(43,34,48,.5); }
a.ex .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 14px 12px; background: linear-gradient(to top, rgba(43,34,48,.82), rgba(43,34,48,0)); color: #fff; font-weight: 600; font-size: .98rem; }

/* QR-Demo */
.qrdemo .wrap { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.qrdemo .qr-card { background: #fff; border: 1px solid var(--linie); border-radius: var(--radius); padding: 18px; box-shadow: var(--schatten-weich); text-align: center; }
.qrdemo .qr-card img { border-radius: 10px; margin: 0 auto 8px; }
.qrdemo .qr-card small { color: var(--grau); }

/* Schulen-Block */
.schule { background: var(--tinte); color: #fff; }
.schule h2 { color: #fff; }
.schule .lead { color: #e9dfe9; }
.schule .cols { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.schule ul { list-style: none; padding: 0; margin: 18px 0 0; }
.schule li { padding-left: 30px; position: relative; margin-bottom: 12px; color: #f2eaf2; }
.schule li::before { content: "✓"; position: absolute; left: 0; color: var(--korall); font-weight: 700; }
.schule .note { font-size: .9rem; color: #c9bccb; margin-top: 18px; }

/* Kontakt / CTA */
.cta-final { background: linear-gradient(135deg, var(--korall) 0%, #d8542f 60%, var(--petrol) 160%); color: #fff; text-align: center; }
.cta-final h2 { color: #fff; }
.cta-final p { color: #fff; opacity: .95; max-width: 46ch; margin-left: auto; margin-right: auto; }
.cta-final .btn--light { margin-top: 10px; }

/* Contact Form 7 */
.wpcf7 label { display: block; font-weight: 600; color: var(--tinte); margin-bottom: 16px; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
  width: 100%; max-width: 560px; display: block; margin-top: 6px;
  padding: 12px 14px; border: 1px solid #d9cdbf; border-radius: 12px; font: inherit; background: #fff; box-sizing: border-box;
}
.wpcf7 textarea { min-height: 150px; }
.wpcf7 .wpcf7-submit {
  background: var(--korall); color: #fff; border: 0; border-radius: 999px;
  padding: 14px 28px; font-weight: 600; font-size: 1rem; cursor: pointer; transition: background .15s ease, transform .15s ease;
}
.wpcf7 .wpcf7-submit:hover { background: var(--korall-dunkel); transform: translateY(-1px); }
.wpcf7-response-output { border-radius: 10px; margin: 14px 0 0 !important; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: #241d29; color: #cfc6d2; padding: 54px 0 30px; font-size: .95rem; }
.site-footer a { color: #f0e8f1; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.site-footer h4 { color: #fff; font-family: var(--font-text); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.footer-brand { font-family: var(--font-titel); font-size: 1.3rem; color: #fff; }
.footer-bottom { border-top: 1px solid #3a3040; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #9a8fa0; font-size: .86rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 34px; }
  .hero-figure { order: -1; }
  .grid-3, .steps, .welten { grid-template-columns: 1fr; }
  .grid-2, .schule .cols, .qrdemo .wrap { grid-template-columns: 1fr; }
  .ex-grid { grid-template-columns: repeat(2, 1fr); }
  .qrdemo .qr-card { max-width: 220px; margin: 0 auto; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav { position: fixed; inset: 70px 0 auto 0; background: var(--creme); flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 20px; border-bottom: 1px solid var(--linie); box-shadow: var(--schatten); transform: translateY(-120%); transition: transform .25s ease; }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--linie); }
  .nav .btn { margin-top: 12px; justify-content: center; }
  .nav-toggle { display: block; }
  .section { padding: 60px 0; }
}
@media (max-width: 520px) {
  .ex-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}
