/*
Theme Name: jetzt-spanien LP
Theme URI: https://jetzt-spanien.de
Description: Schlankes Ein-Zweck-Theme fuer die Opt-in-Landingpage jetzt-spanien.de. Kein Blog-Chrome, keine Navigation. Front-Page = LP, plus Impressum/Datenschutz.
Author: Andreas Lohleit
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Text Domain: jetztspanien
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

:root {
  --bg:         #FDFCFA;
  --sand:       #F7F2E9;
  --paper:      #FFFFFF;
  --terracotta: #F5620D;
  --terra-d:    #D8500A;
  --terra-soft: #F8E7D8;
  --turq:       #1B9AA6;
  --turq-soft:  #E4F4F5;
  --ocher:      #CC8B3C;
  --brown:      #2A2620;
  --body:       #403A32;
  --muted:      #7A7163;
  --border:     #ECE6DB;
  --max-w:      1280px;
}

body { font-family: 'Mulish', system-ui, -apple-system, Segoe UI, sans-serif; font-size: 1.1875rem; line-height: 1.7; color: var(--body); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip; }
.wrap { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 30px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

h1, h2, h3 { font-family: 'Jost', sans-serif; color: var(--brown); font-weight: 700; line-height: 1.08; letter-spacing: -.01em; }
.eyebrow { font-family: 'Jost', sans-serif; font-weight: 600; font-size: .92rem; letter-spacing: .12em; text-transform: uppercase; color: var(--terracotta); display: block; }
.eyebrow.center { text-align: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: 'Jost', sans-serif; font-size: 1.05rem; font-weight: 600; min-height: 60px; padding: 0 30px; background: var(--terracotta); color: #fff; border: none; border-radius: 12px; cursor: pointer; transition: background .16s, transform .16s, box-shadow .16s; box-shadow: 0 10px 24px rgba(245,98,13,.24); }
.btn:hover { background: var(--terra-d); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(245,98,13,.3); }
.btn:active { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--terracotta); outline-offset: 2px; border-radius: 6px; }

/* HEADER */
.nav { position: static; background: #FFFFFF; border-bottom: 1px solid var(--border); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 13px; padding-bottom: 13px; }
.brand { font-family: 'Jost', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--brown); display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand .mark { width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--ocher), var(--terracotta)); box-shadow: inset 0 0 0 3px rgba(255,255,255,.55); flex-shrink: 0; }
.brand__logo { height: 40px; width: auto; display: block; }
.nav__trust { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .95rem; color: var(--muted); white-space: nowrap; }
.nav__trust svg { width: 18px; height: 18px; color: var(--turq); flex-shrink: 0; }
@media (max-width: 600px) { .nav__trust { display: none; } }
.nav__right { display: flex; align-items: center; gap: 20px; }
.nav__note { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .98rem; color: var(--body); white-space: nowrap; }
.nav__note svg { width: 20px; height: 20px; color: var(--turq); }
.nav__cta .btn { min-height: 46px; padding: 0 22px; font-size: .98rem; box-shadow: none; white-space: nowrap; }
@media (max-width: 680px) { .nav__note { display: none; } }
@media (max-width: 420px) { .brand { font-size: 1.22rem; } .nav__cta .btn { min-height: 42px; padding: 0 16px; font-size: .92rem; } }

/* HERO */
.hero { position: relative; background: linear-gradient(180deg, #FBF6EE, var(--bg) 62%); overflow: hidden; min-height: 820px; display: flex; align-items: center; }
.hero__sun { position: absolute; top: -90px; right: -70px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(27,154,166,.10), rgba(27,154,166,0) 70%); pointer-events: none; z-index: 0; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.04fr .96fr; gap: 52px; align-items: center; padding-top: 60px; padding-bottom: 78px; }
@media (max-width: 940px) { .hero__grid { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; padding-bottom: 48px; } }

.hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 800; margin: 14px 0 0; max-width: 15ch; }
.hero h1 .hl { color: var(--terracotta); }
.hero__lede { font-size: 1.18rem; color: var(--body); margin-top: 18px; max-width: 44ch; }

.signup { margin-top: 26px; max-width: 560px; }
.signup__bar { display: flex; align-items: center; gap: 8px; background: var(--paper); border: 1px solid var(--border); border-radius: 16px; padding: 9px; box-shadow: 0 14px 36px rgba(42,38,32,.08); }
.signup__bar .ic { display: flex; align-items: center; padding-left: 12px; color: var(--turq); }
.signup__bar .ic svg { width: 22px; height: 22px; }
.signup__bar input { flex: 1; min-width: 0; border: none; background: transparent; font-family: inherit; font-size: 1.08rem; color: var(--brown); padding: 0 6px; }
.signup__bar input::placeholder { color: #9A9180; }
.signup__bar input:focus { outline: none; }
.signup__bar .btn { flex-shrink: 0; box-shadow: none; }
.signup__hint { font-size: .92rem; color: var(--muted); margin-top: 12px; display: flex; align-items: center; gap: 8px; }
.signup__hint svg { width: 17px; height: 17px; color: var(--turq); flex-shrink: 0; }
@media (max-width: 520px) { .signup__bar { flex-direction: column; align-items: stretch; gap: 10px; } .signup__bar .ic { display: none; } .signup__bar input { min-height: 56px; padding: 0 16px; border: 1px solid var(--border); border-radius: 10px; } .signup__bar .btn { width: 100%; } }
.success { background: var(--paper); border: 1px solid var(--border); border-radius: 16px; padding: 22px 24px; box-shadow: 0 14px 36px rgba(42,38,32,.08); display: none; }
.success.on { display: block; }
.success h3 { font-size: 1.3rem; color: var(--terracotta); margin-bottom: 6px; }
.success p { font-size: 1.02rem; color: var(--body); }
.signup-live.hide { display: none; }

/* Hero-Bildkomposition */
.hero__media { position: relative; }
.hero__composition { position: relative; width: 100%; max-width: 500px; margin-left: auto; }
.blob { position: relative; width: 100%; aspect-ratio: 1/1.12; border-radius: 54% 46% 50% 50% / 54% 50% 50% 46%; overflow: hidden; border: 8px solid var(--paper); box-shadow: 0 24px 56px rgba(42,38,32,.16); }
.blob img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.circle { position: absolute; left: -16px; bottom: -14px; width: 168px; height: 168px; border-radius: 50%; overflow: hidden; border: 7px solid var(--paper); box-shadow: 0 16px 34px rgba(42,38,32,.18); }
.circle img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 16px; left: -16px; background: var(--paper); border-radius: 14px; padding: 11px 15px; box-shadow: 0 12px 28px rgba(42,38,32,.14); display: flex; align-items: center; gap: 11px; }
.badge__ic { width: 38px; height: 38px; border-radius: 50%; background: var(--terra-soft); color: var(--terracotta); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.badge__ic svg { width: 20px; height: 20px; }
.badge b { font-family: 'Jost', sans-serif; font-weight: 700; color: var(--brown); font-size: .96rem; display: block; line-height: 1.15; }
.badge span { font-size: .82rem; color: var(--muted); }
.dotgrid { position: absolute; right: -20px; top: -16px; width: 100px; height: 100px; background-image: radial-gradient(rgba(27,154,166,.4) 2px, transparent 2.4px); background-size: 20px 20px; opacity: .6; z-index: -1; }
@media (max-width: 940px) { .hero__composition { max-width: 380px; margin: 6px auto 22px; } .circle { width: 124px; height: 124px; left: -12px; } .badge { left: -12px; } .dotgrid { right: -14px; } }

/* SCHMERZ */
.pain { padding: 76px 0; text-align: center; }
.pain__in { max-width: 52ch; margin: 0 auto; }
.pain__lead { font-family: 'Jost', sans-serif; font-weight: 700; font-size: clamp(1.45rem, 2.6vw, 2.05rem); color: var(--brown); line-height: 1.22; margin-bottom: 16px; }
.pain__text { font-size: 1.18rem; color: var(--body); }
.pain__text .hl { color: var(--terracotta); font-weight: 600; }
@media (max-width: 520px) { .pain { padding: 56px 0; } }

/* REASSURANCE */
.assure { background: var(--sand); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.assure__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 40px; padding-top: 20px; padding-bottom: 20px; }
.assure__item { display: inline-flex; align-items: center; gap: 10px; font-family: 'Jost', sans-serif; font-weight: 600; font-size: 1.04rem; color: var(--brown); }
.assure__item svg { width: 22px; height: 22px; color: var(--terracotta); flex-shrink: 0; }

/* KACHELN */
.tiles { padding: 88px 0 92px; }
.tiles__head { max-width: 760px; margin: 0 auto 42px; text-align: center; }
.tiles__head .eyebrow { margin-bottom: 14px; }
.tiles h2 { font-size: clamp(2rem, 3.4vw, 2.8rem); max-width: 24ch; margin: 0 auto 16px; }
.tiles__intro { color: var(--body); font-size: 1.1rem; max-width: 56ch; margin: 0 auto; }
.tiles__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
@media (max-width: 920px) { .tiles__grid { grid-template-columns: 1fr; gap: 18px; max-width: 540px; margin: 0 auto; } }
.tile { background: var(--paper); border: 1px solid var(--border); border-radius: 20px; padding: 32px 30px 30px; display: block; transition: transform .18s, box-shadow .18s; box-shadow: 0 6px 22px rgba(42,38,32,.05); }
.tile:hover { transform: translateY(-5px); box-shadow: 0 20px 42px rgba(42,38,32,.1); }
.tile__n { width: 52px; height: 52px; border-radius: 50%; background: var(--terracotta); color: #fff; font-family: 'Jost', sans-serif; font-weight: 700; font-size: 1.3rem; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; box-shadow: 0 8px 18px rgba(245,98,13,.26); }
.tile h3 { font-size: 1.34rem; margin-bottom: 10px; }
.tile p { font-size: 1.03rem; color: var(--body); line-height: 1.62; }
@media (max-width: 520px) { .tiles { padding: 60px 0 64px; } .tile { padding: 28px 24px 26px; } }

/* ANKOMMEN */
.arrive { padding: 80px 0; }
.arrive__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.arrive__media { order: 2; }
.arrive__text { order: 1; }
@media (max-width: 860px) { .arrive__grid { grid-template-columns: 1fr; gap: 30px; } .arrive__media { order: 0; } .arrive__text { order: 0; } }
.arrive__media img { width: 100%; height: auto; border-radius: 20px; aspect-ratio: 4/3; object-fit: cover; background: var(--sand); box-shadow: 0 20px 46px rgba(42,38,32,.14); }
.arrive__text .eyebrow { margin-bottom: 14px; }
.arrive h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 14px; max-width: 18ch; }
.arrive__lead { font-size: 1.12rem; color: var(--body); margin-bottom: 24px; max-width: 46ch; }
.arrive__list { list-style: none; display: grid; gap: 14px; }
.arrive__list li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; font-size: 1.04rem; line-height: 1.55; color: var(--body); }
.arrive__list svg { width: 22px; height: 22px; color: var(--terracotta); flex-shrink: 0; margin-top: 1px; }
@media (max-width: 520px) { .arrive { padding: 56px 0; } }

/* VERTRAUEN */
.trust { padding: 74px 0; text-align: center; }
.trust__lead { font-family: 'Jost', sans-serif; font-weight: 600; font-size: clamp(1.4rem, 2.5vw, 1.9rem); color: var(--brown); line-height: 1.3; max-width: 30ch; margin: 0 auto; }
.trust__small { font-size: 1rem; color: var(--muted); margin-top: 14px; max-width: 50ch; margin-left: auto; margin-right: auto; }
@media (max-width: 520px) { .trust { padding: 54px 0; } }

/* FINAL CTA */
.final { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; }
.final__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.final__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(18,38,44,.34), rgba(18,38,44,0) 58%); }
.final__card { position: relative; z-index: 2; background: rgba(255,255,255,.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 22px; box-shadow: 0 26px 56px rgba(18,38,44,.24); padding: 44px; max-width: 540px; margin: 64px 0; }
.final__card .eyebrow { margin-bottom: 14px; }
.final__card h2 { font-size: clamp(1.85rem, 3.4vw, 2.6rem); max-width: 18ch; margin: 0 0 12px; }
.final__card p { color: var(--body); font-size: 1.08rem; margin-bottom: 26px; }
.final__card .btn { width: 100%; }
@media (max-width: 560px) { .final { min-height: 0; } .final__card { padding: 30px 22px; margin: 36px 0; } }

/* FOOTER */
footer { padding: 32px 0; background: #FFFFFF; border-top: 1px solid var(--border); color: var(--muted); }
.foot { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 24px; }
.foot__logo { height: 40px; width: auto; display: block; }
.foot__links { margin-left: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-size: .95rem; }
.foot__links a, .foot__cookie { color: var(--body); font-weight: 600; }
.foot__cookie { background: none; border: 0; padding: 0; font-family: inherit; font-size: inherit; cursor: pointer; }
.foot__links a:hover, .foot__cookie:hover { color: var(--terracotta); }
.foot__sep { color: #CFC6B6; }
.foot__meta { flex-basis: 100%; margin-top: 4px; font-size: .82rem; line-height: 1.55; color: var(--muted); max-width: 92ch; }
@media (max-width: 687px) {
  .foot { justify-content: center; text-align: center; }
  .foot__logo { margin: 0 auto; }
  .foot__links { margin-left: 0; width: 100%; justify-content: center; }
  .foot__meta { text-align: center; margin-left: auto; margin-right: auto; }
}

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* RECHTSSEITEN (Impressum / Datenschutz) */
.legal-page { padding: 60px 0 84px; }
.legal-page .wrap { max-width: var(--max-w); }
.legal-page h1, .legal-page .legal-section { max-width: 820px; }
.legal-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 6px; }
.legal-section { margin-top: 34px; }
.legal-section h2 { font-size: 1.5rem; margin-bottom: 12px; }
.legal-section h3 { font-size: 1.15rem; margin: 22px 0 8px; }
.legal-section h4 { font-family: 'Jost', sans-serif; font-size: 1.02rem; font-weight: 700; color: var(--brown); margin: 16px 0 6px; }
.legal-section p, .legal-section li { font-size: 1.02rem; line-height: 1.7; margin-bottom: 12px; }
.legal-section ul { padding-left: 22px; margin-bottom: 12px; }
.legal-section a { color: var(--terracotta); text-decoration: underline; word-break: break-word; }

/* Anker-Sprung zum Formular: Abstand fuer den klebrigen Header */
#optin { scroll-margin-top: 90px; }

/* ── Bestaetigungs-/Statusseiten (fast-geschafft, bestaetigt), LP-Design ── */
.confirm { padding: 64px 0 88px; }
.confirm__card { max-width: 620px; margin: 0 auto; background: var(--paper); border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 26px 56px rgba(42,38,32,.10); overflow: hidden; }
.confirm__banner { width: 100%; height: 150px; object-fit: cover; display: block; background: var(--sand); }
.confirm__body { padding: 36px 46px 44px; text-align: center; }
.confirm__icon { display: flex; align-items: center; justify-content: center; width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%; background: var(--terracotta); color: #fff; box-shadow: 0 10px 24px rgba(245,98,13,.28); }
.confirm__icon svg { width: 34px; height: 34px; }
.confirm h1 { font-family: 'Jost', sans-serif; font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; color: var(--brown); margin: 0 0 12px; }
.confirm__lead { font-size: 1.14rem; color: var(--body); max-width: 42ch; margin: 0 auto 26px; }
.confirm__box { background: var(--sand); border: 1px solid var(--border); border-left: 4px solid var(--terracotta); border-radius: 14px; padding: 22px 24px; text-align: left; }
.confirm__box p { font-size: 1.06rem; color: var(--body); margin: 0; line-height: 1.6; }
.confirm__steps { list-style: none; counter-reset: step; display: grid; gap: 15px; margin: 0; padding: 0; }
.confirm__steps li { display: grid; grid-template-columns: auto 1fr; gap: 13px; align-items: start; font-size: 1.05rem; color: var(--body); line-height: 1.5; }
.confirm__steps li::before { counter-increment: step; content: counter(step); width: 30px; height: 30px; border-radius: 50%; background: var(--terracotta); color: #fff; font-family: 'Jost', sans-serif; font-weight: 700; font-size: 1rem; display: flex; align-items: center; justify-content: center; }
.confirm__hint { font-size: .95rem; color: var(--muted); margin: 22px 0 0; }
@media (max-width: 560px) {
  .confirm { padding: 40px 0 56px; }
  .confirm__body { padding: 30px 24px 34px; }
  .confirm__banner { height: 120px; }
  .confirm__box { padding: 18px 18px; }
}

/* ── Brevo-Formular an das LP-Design angepasst ── */
.signup .sib-form,
.signup .sib-form-container,
.signup #sib-container { padding: 0; margin: 0; background: transparent; border: 0; max-width: 100%; text-align: left; }
.signup__bar .sib-input { flex: 1; min-width: 0; padding: 0; }
.signup__bar .form__entry,
.signup__bar .form__label-row,
.signup__bar .entry__field { width: 100%; margin: 0; padding: 0; }
.signup__bar .entry__field { display: flex; align-items: center; }
.signup__bar .entry__field .input { width: 100%; min-width: 0; border: none; background: transparent; font-family: inherit; font-size: 1.08rem; line-height: 1.5; color: var(--brown); padding: 0 6px; }
.signup__bar .entry__field .input:focus { outline: none; }
.signup__bar .entry__field .input::placeholder { color: #9A9180; }
.signup__bar .btn { flex-shrink: 0; box-shadow: none; }
.signup__bar .sib-hide-loader-icon { display: none; }
.signup .entry__error { color: #b3261e; font-family: 'Mulish', sans-serif; font-size: .9rem; margin-top: 8px; }
.signup .entry__error:empty { display: none; }
.signup .input--hidden { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.sib-form-message-panel { display: none; margin-bottom: 14px; padding: 12px 16px; border: 1px solid; border-radius: 12px; font-family: 'Mulish', sans-serif; font-size: .98rem; }
.sib-form-message-panel__text { display: flex; align-items: center; gap: 10px; }
.sib-notification__icon { width: 20px; height: 20px; flex-shrink: 0; fill: currentColor; }
.sib-form-message-panel--error { color: #661d1d; background: #ffeded; border-color: #ff4949; }
.sib-form-message-panel--success { color: #085229; background: #e7faf0; border-color: #13ce66; }
@media (max-width: 520px) {
  .signup__bar .entry__field .input { min-height: 56px; padding: 0 16px; border: 1px solid var(--border); border-radius: 10px; }
}
