/* ============================================================
   SEFODO Landing html_v2
   Theme: Warm Light "Paper", identisch zur Farbwelt von
   sefodo.com (new_html): Terrakotta-Akzent, Instrument Serif
   als Display, Hanken Grotesk als Body, IBM Plex Mono für Tags.
   Radius-System: Karten 14px / 22px, Buttons 10px. Keine Pills.
   ============================================================ */

:root {
  --bg:           #F7F2EA;
  --bg-2:         #F1EADD;
  --bg-card:      #FFFDF9;
  --bg-hover:     #EFE7D8;
  --border:       #E6DDCF;
  --border-mid:   #EEE6D8;
  --text:         #2C2620;
  --text-2:       #6E6456;
  --text-3:       #9C9080;

  --accent:       #B35A34;
  --accent-hover: #9B4D2B;
  --sand:         #EFE7D8;

  --r: 14px;
  --r-lg: 22px;
  --r-btn: 10px;

  --f-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --f-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', monospace;

  --container: 1200px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 20px 50px rgba(44, 38, 32, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection { background: rgba(179, 90, 52, 0.25); }

/* Kursive Betonung in der Display-Schrift, mit Luft fuer Unterlaengen */
.accent-em {
  font-style: italic;
  color: var(--accent);
  line-height: 1.1;
  padding-bottom: 0.06em;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border: none;
  border-radius: var(--r-btn);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
              background-color 0.25s, color 0.25s, border-color 0.25s;
}

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

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(155, 77, 43, 0.28);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--border);
}

.btn-ghost:hover {
  box-shadow: inset 0 0 0 1.5px var(--accent);
  color: var(--accent);
}

.btn-lg { padding: 0.95rem 2.1rem; font-size: 1.0625rem; }

.btn-nav { padding: 0.55rem 1.15rem; font-size: 0.9rem; }

/* ---------- Header ---------- */

#top-sentinel { position: absolute; top: 0; height: 1px; width: 1px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 234, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s;
}

.site-header.is-scrolled {
  background: rgba(247, 242, 234, 0.92);
  border-bottom-color: var(--border);
}

.nav {
  max-width: var(--container);
  margin: 0 auto;
  height: 68px;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}

.brand-icon { width: 30px; height: 30px; }

.brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-links { display: flex; gap: 1.9rem; }

.nav-link {
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--accent); }

.nav-link.is-active { color: var(--accent); }

.nav-actions { display: flex; gap: 0.6rem; align-items: center; }

/* Anmelden-Link nur im mobilen Menü sichtbar */
.nav-link-login { display: none; }

/* ---------- Burger (nur mobil sichtbar) ---------- */

.nav-burger {
  display: none;
  appearance: none;
  border: none;
  background: transparent;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border-radius: var(--r-btn);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-burger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-burger-box {
  position: relative;
  display: block;
  width: 20px;
  height: 14px;
}

.nav-burger-line,
.nav-burger-box::before,
.nav-burger-box::after {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}

.nav-burger-line { top: 50%; margin-top: -1px; }
.nav-burger-box::before { content: ''; top: 0; }
.nav-burger-box::after { content: ''; bottom: 0; }

.site-header.menu-open .nav-burger-line { opacity: 0; }
.site-header.menu-open .nav-burger-box::before { transform: translateY(6px) rotate(45deg); }
.site-header.menu-open .nav-burger-box::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; background: var(--bg); }

.hero-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 5.5rem;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 4rem;
  align-items: center;
  min-height: calc(100dvh - 68px);
}

.hero-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2.7rem, 5.2vw, 4.4rem);
  letter-spacing: -0.01em;
  line-height: 1.06;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.hero-sub {
  font-size: 1.2rem;
  color: var(--text-2);
  max-width: 34rem;
  margin-bottom: 2.2rem;
}

.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero-figure {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  transform: rotate(1.25deg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 10px;
}

.hero-figure img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-height: 620px;
  object-fit: cover;
  border-radius: calc(var(--r-lg) - 10px);
}

/* Load-in nur mit transform/opacity */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy { animation: rise 0.8s var(--ease-out) both; }
  .hero-figure { animation: rise 0.8s 0.12s var(--ease-out) both; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; }
}

/* ---------- Manifest ---------- */

.manifesto {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 7.5rem 1.5rem;
}

.manifesto-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 4rem;
  align-items: center;
}

/* Grid-Blowout verhindern: Bildspalte darf schrumpfen */
.manifesto-inner > * { min-width: 0; }
.manifesto-strip img { min-width: 0; }

.manifesto-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  max-width: 22ch;
  margin-bottom: 1.5rem;
}

.manifesto-body {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 56ch;
}

.manifesto-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.9rem;
  align-items: end;
}

.manifesto-strip img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid var(--border);
}

/* Versetzte Haengung wie Prints an der Wand */
.manifesto-strip img:nth-child(1) { transform: translateY(1.4rem); }
.manifesto-strip img:nth-child(3) { transform: translateY(-1rem); }

/* ---------- Abschnitts-Kopf ---------- */

.section-head {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.tag {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin-bottom: 0.9rem;
}

.section-sub {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 48ch;
}

/* ---------- Personas ---------- */

.personas { padding: 7rem 0 8rem; }

.persona-widget {
  max-width: var(--container);
  margin: 3.5rem auto 0;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 2rem;
  align-items: start;
}

.persona-tabs { display: flex; flex-direction: column; gap: 0.5rem; }

.persona-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  text-align: left;
  font-family: inherit;
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  transition: background-color 0.25s, border-color 0.25s, color 0.25s;
}

.persona-tab:hover { background: var(--bg-hover); color: var(--text); }

.persona-tab.is-active {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text);
  position: relative;
}

.persona-tab.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 3px;
  border-radius: 3px;
  background: var(--accent);
}

.persona-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.persona-tab-role { font-weight: 700; font-size: 1.05rem; }

.persona-tab-hint { font-size: 0.875rem; color: var(--text-3); }

.persona-panels {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2.6rem 2.75rem;
  min-height: 480px;
  box-shadow: 0 10px 30px rgba(44, 38, 32, 0.05);
}

.persona-panel:not([hidden]) {
  display: grid;
  grid-template-columns: 1fr 280px;
  grid-template-rows: auto auto 1fr auto;
  column-gap: 2.2rem;
  align-content: start;
}

.persona-panel:not([hidden]) > * { grid-column: 1; }

.persona-figure {
  grid-column: 2 !important;
  grid-row: 1 / 5;
  margin: 0;
}

.persona-figure img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid var(--border-mid);
}

.persona-panel[hidden] { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .persona-panel.is-active { animation: panel-in 0.4s var(--ease-out) both; }
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.persona-scene {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.persona-quote {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  letter-spacing: -0.01em;
  line-height: 1.22;
  margin-bottom: 1.4rem;
  max-width: 26ch;
}

.persona-shift {
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 58ch;
  margin-bottom: 1.8rem;
}

.persona-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.persona-features li {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-hover);
  padding: 0.45rem 0.95rem;
  border-radius: var(--r-btn);
  background: var(--sand);
  border: 1px solid var(--border);
}

/* ---------- Produkt-Bento ---------- */

.product { padding: 2rem 0 8rem; }

.bento {
  max-width: var(--container);
  margin: 3.5rem auto 0;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-areas:
    "gal gal gal gal gal gal gal ws  ws  ws  ws  ws"
    "gal gal gal gal gal gal gal st  st  st  st  st"
    "ver ver ver ver ver sho sho sho sho sho sho sho";
  gap: 1.25rem;
}

.cell-galerie   { grid-area: gal; }
.cell-workspace { grid-area: ws; }
.cell-statistik { grid-area: st; }
.cell-vertrag   { grid-area: ver; }
.cell-verkauf   { grid-area: sho; }

.bento-cell {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bento-cell img {
  width: 100%;
  flex: 1;
  min-height: 0;
  object-fit: cover;
  object-position: top center;
  border-bottom: 1px solid var(--border-mid);
}

.cell-galerie img { min-height: 420px; }
.cell-workspace img, .cell-statistik img { min-height: 180px; max-height: 240px; }

.bento-caption { padding: 1.3rem 1.5rem 1.5rem; }

.bento-caption h3, .bento-text h3 {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}

.bento-caption p, .bento-text p {
  color: var(--text-2);
  font-size: 0.975rem;
}

.bento-text { padding: 2rem 1.75rem; justify-content: center; }

.cell-vertrag {
  background:
    radial-gradient(130% 150% at 0% 0%, rgba(179, 90, 52, 0.14), transparent 60%),
    var(--bg-card);
}

.cell-verkauf { background: var(--bg-2); }

.product-actions {
  max-width: var(--container);
  margin: 2rem auto 0;
  padding: 0 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* ---------- Check-Liste (Preis + Funktionen) ---------- */

.check-list { list-style: none; }

.check-list li {
  padding: 0.5rem 0 0.5rem 1.9rem;
  position: relative;
  color: var(--text);
  font-size: 1rem;
}

.check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M3.5 8.5l3 3 6-7" fill="none" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / 70% no-repeat,
    var(--accent);
}

/* ---------- Preis ---------- */

.pricing { padding: 0 1.5rem 8rem; }

.pricing-card {
  max-width: 820px;
  margin: 0 auto;
  padding: 3.5rem 3rem;
  border-radius: var(--r-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.pricing-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 0.9rem;
}

.pricing-sub {
  color: var(--text-2);
  font-size: 1.1rem;
  max-width: 48ch;
  margin: 0 auto 2.4rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 2.5rem;
  text-align: left;
  max-width: 620px;
  margin: 0 auto 2.6rem;
}

.pricing-note {
  margin-top: 1.6rem;
  font-size: 0.9rem;
  color: var(--text-3);
}

.pricing-note a { color: var(--accent); }

/* ---------- Final CTA ---------- */

.closer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 7rem 1.5rem;
}

.closer-inner {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.closer-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  letter-spacing: -0.01em;
  line-height: 1.12;
  margin-bottom: 2.2rem;
  text-wrap: balance;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.2rem 1.5rem;
  background: var(--bg);
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.footer-links { display: flex; gap: 1.5rem; }

.footer-links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.925rem;
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--accent); }

.footer-copy { color: var(--text-3); font-size: 0.925rem; }

/* ---------- Cookie-Bar ---------- */

.cookie-bar {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  display: none;
  max-width: 720px;
  margin: 0 auto;
  padding: 1.1rem 1.3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow-soft);
}

.cookie-bar.show { display: block; }

.cookie-bar-text {
  font-size: 0.9rem;
  color: var(--text-2);
  margin-bottom: 0.9rem;
}

.cookie-bar-text strong { color: var(--text); }

.cookie-bar-text a { color: var(--accent); }

.cookie-bar-btns { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.cookie-bar-btns .btn { font-size: 0.9rem; padding: 0.55rem 1.1rem; }

@media (max-width: 480px) {
  .cookie-bar-btns .btn { flex: 1; }
}

/* ---------- Scroll-Reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  }
  .reveal.is-visible { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 3.5rem;
    gap: 2.5rem;
  }
  .hero-figure { transform: none; max-width: 560px; }
  .hero-figure img { min-height: 320px; max-height: 480px; }

  .manifesto-inner { grid-template-columns: 1fr; gap: 3rem; }
  .manifesto-strip { max-width: 560px; }

  .persona-widget { grid-template-columns: 1fr; gap: 1.5rem; }

  .persona-tabs {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
  }
  .persona-tab {
    flex: 0 0 auto;
    scroll-snap-align: start;
    background: var(--bg-card);
    border-color: var(--border-mid);
  }
  .persona-tab.is-active::before { display: none; }
  .persona-tab.is-active { border-color: var(--accent); }
  .persona-tab-hint { display: none; }
  .persona-panels { min-height: 0; padding: 1.9rem 1.6rem; }

  .persona-panel:not([hidden]) { grid-template-columns: 1fr; grid-template-rows: none; }
  .persona-figure { grid-column: 1 !important; grid-row: auto; margin-bottom: 1.4rem; }
  .persona-figure img { height: 240px; min-height: 0; }

  .bento {
    grid-template-areas:
      "gal gal gal gal gal gal gal gal gal gal gal gal"
      "ws  ws  ws  ws  ws  ws  st  st  st  st  st  st"
      "ver ver ver ver ver ver sho sho sho sho sho sho";
  }
  .cell-galerie img { min-height: 320px; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .btn-ghost.btn-nav { display: none; }
  .nav-burger { display: inline-flex; }

  /* Aufgeklapptes Menü als Panel unter der Leiste */
  .site-header.menu-open { background: var(--bg); }

  .site-header.menu-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 0.4rem 1.5rem 1.1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 30px rgba(44, 38, 32, 0.08);
  }

  .site-header.menu-open .nav-link {
    display: block;
    padding: 0.8rem 0;
    font-size: 1.05rem;
  }

  .site-header.menu-open .nav-link-login {
    border-top: 1px solid var(--border);
    margin-top: 0.35rem;
    padding-top: 1.05rem;
  }

  .hero-actions .btn { width: 100%; }

  .manifesto { padding: 5rem 1.5rem; }
  .manifesto-strip img:nth-child(1),
  .manifesto-strip img:nth-child(3) { transform: none; }

  .bento { grid-template-areas: "gal" "ws" "st" "ver" "sho"; grid-template-columns: 1fr; }
  .cell-galerie img { min-height: 240px; }

  .pricing-card { padding: 2.5rem 1.5rem; }
  .pricing-grid { grid-template-columns: 1fr; gap: 0; }

  /* Footer mobil: nur Impressum, Datenschutz & AGB */
  .footer-brand,
  .footer-copy,
  .footer-links a:not(.footer-legal) { display: none; }

  .footer-inner { justify-content: center; }
  .footer-links { gap: 2rem; }
}

@media (max-width: 480px) {
  .nav { padding: 0 1rem; gap: 1rem; }
  .btn-primary.btn-nav { padding: 0.55rem 0.85rem; font-size: 0.85rem; }
  .site-header.menu-open .nav-links { padding-left: 1rem; padding-right: 1rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .site-header.menu-open .nav-links { animation: menu-in 0.25s var(--ease-out); }
}

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; }
}
