/* FPE Flowerpower Energy – Website-Entwurf */
:root {
  --bg: #f6f3ec;
  --bg-soft: #fffdf8;
  --bg-card: #ffffff;
  --ink: #1c1b19;
  --ink-soft: #5c5a54;
  --line: #e3ddd2;
  --line-strong: #cfc7b8;
  --magenta: #c20a7a;
  --magenta-dark: #8e0a59;
  --green: #7ea01c;
  --green-dark: #5a7810;
  --blue: #4c82c4;
  --blue-dark: #2f5e96;
  --orange: #d15a24;
  --orange-dark: #a34418;
  --ice: #6aa7c9;
  --shadow: 0 10px 30px rgba(40, 30, 10, 0.07);
  --shadow-soft: 0 2px 10px rgba(40, 30, 10, 0.05);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 4.5rem;
  --max: 1160px;
  --font: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--magenta-dark); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--magenta); }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; }
.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: #fff; padding: 0.5rem 0.8rem; z-index: 100;
  border-radius: 8px;
}
.skip-link:focus { top: 0.6rem; }

.wrap { width: min(var(--max), calc(100% - 2.4rem)); margin-inline: auto; }
.draft-banner {
  background: var(--ink);
  color: #f6f3ec;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0.4rem 1rem;
}
.draft-banner strong { color: #fff; font-weight: 600; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 243, 236, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  text-decoration: none; color: var(--ink);
  flex-shrink: 0;
}
.brand img { width: 44px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
}
.brand-sub { font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.01em; }

.nav-toggle {
  display: none;
  background: transparent; border: 1px solid var(--line-strong);
  border-radius: 10px; padding: 0.45rem 0.6rem; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 1.25rem; height: 2px; background: var(--ink);
  margin: 4px 0; border-radius: 1px;
}
.nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: 0.15rem;
}
.nav a {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 550;
  font-size: 0.95rem;
  border-radius: 999px;
}
.nav a:hover { background: #efe9dc; color: var(--ink); }
.nav a.is-active {
  background: var(--ink);
  color: #fff;
}
.nav a.nav-cta {
  background: var(--magenta);
  color: #fff;
  margin-left: 0.35rem;
}
.nav a.nav-cta:hover { background: var(--magenta-dark); color: #fff; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.2rem 0 3.4rem;
}
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
}
.petal {
  position: absolute; border-radius: 60% 40% 55% 45%;
  opacity: 0.18; filter: blur(2px);
}
.petal-a { width: 280px; height: 280px; background: var(--magenta); right: -40px; top: -60px; }
.petal-b { width: 220px; height: 220px; background: var(--green); right: 120px; top: 80px; opacity: 0.15; }
.petal-c { width: 180px; height: 180px; background: var(--blue); left: -50px; bottom: -40px; opacity: 0.16; }
.petal-d { width: 120px; height: 120px; background: var(--orange); left: 18%; top: 20px; opacity: 0.12; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 650; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--magenta-dark);
  margin: 0 0 1rem;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.3rem, 5.2vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.1rem;
  max-width: 16ch;
}
.hero .lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 42rem;
  margin: 0 0 2rem;
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.4rem;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.btn-primary { background: var(--magenta); color: #fff; }
.btn-primary:hover { background: var(--magenta-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: #efe9dc; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  margin: 0.5rem 0 0;
}
.stat {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.1rem 1.2rem;
  box-shadow: var(--shadow-soft);
}
.stat .num {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  line-height: 1.15;
  margin: 0 0 0.3rem;
}
.stat p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.4; }
.stat[data-accent="magenta"] .num { color: var(--magenta); }
.stat[data-accent="green"] .num { color: var(--green-dark); }
.stat[data-accent="blue"] .num { color: var(--blue-dark); }
.stat[data-accent="orange"] .num { color: var(--orange-dark); }

/* Sections */
.section { padding: 4.2rem 0; }
.section.alt { background: var(--bg-soft); border-block: 1px solid var(--line); }
.kicker {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--green-dark); margin: 0 0 0.6rem;
}
h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.9rem;
}
h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
  letter-spacing: -0.015em;
}
.intro { font-size: 1.12rem; color: var(--ink-soft); max-width: 46rem; margin: 0 0 2rem; }
.grid-3, .grid-2, .grid-4 {
  display: grid; gap: 1.1rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.45rem;
  box-shadow: var(--shadow-soft);
  height: 100%;
}
.card p:last-child { margin-bottom: 0; }
.icon-dot {
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.85rem; font-weight: 700; color: #fff;
  margin-bottom: 0.9rem;
}
.icon-dot.magenta { background: var(--magenta); }
.icon-dot.green { background: var(--green); }
.icon-dot.blue { background: var(--blue); }
.icon-dot.orange { background: var(--orange); }
.icon-dot.ice { background: var(--ice); }

.note, .placeholder {
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  margin: 1rem 0;
}
.note { background: #eef4e2; border: 1px solid #d5e3b3; color: #3a4a16; }
.placeholder {
  background: #fff4e8;
  border: 1px dashed #e0b07a;
  color: #6a3e10;
}
.placeholder strong { color: #5a3208; }

/* Energy flow */
.flow-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 1.2rem;
  align-items: start;
}
.flow-stage {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; fill: #5c5a54;
}
.flow-svg-wrap {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.8rem;
  box-shadow: var(--shadow-soft);
  overflow-x: auto;
}
.flow-svg-wrap svg { width: 100%; height: auto; display: block; min-width: 700px; }
.node {
  cursor: pointer;
}
.node rect, .node path.bg {
  transition: filter 0.15s ease, stroke-width 0.15s ease;
}
.node:hover rect, .node:focus rect, .node.is-active rect {
  filter: brightness(1.03);
}
.node:focus { outline: none; }
.node.is-active rect, .node:focus-visible rect {
  stroke-width: 3;
  stroke: var(--ink);
}
.flow-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem;
  box-shadow: var(--shadow);
  position: sticky; top: calc(var(--header-h) + 1rem);
  min-height: 16rem;
}
.flow-panel .tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem; border-radius: 999px;
  margin-bottom: 0.7rem;
}
.tag.source { background: #fde8f3; color: var(--magenta-dark); }
.tag.storage { background: #e4f1f8; color: var(--blue-dark); }
.tag.convert { background: #eef4e2; color: var(--green-dark); }
.tag.use { background: #fde8d8; color: var(--orange-dark); }
.flow-panel h3 { margin-top: 0.2rem; }
.flow-panel p { color: var(--ink-soft); }

/* Schema viewer */
.schema-frame {
  background: #f3efe6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.schema-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 0.8rem; flex-wrap: wrap;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.schema-toolbar p { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }
.schema-scroll {
  overflow: auto; max-height: 70vh;
  background: #eee8dc;
}
.schema-scroll img { width: 100%; max-width: none; height: auto; }
.lightbox {
  position: fixed; inset: 0; background: rgba(20,16,10,0.88);
  z-index: 80; display: none; padding: 1.5rem;
}
.lightbox.is-open { display: grid; place-items: center; }
.lightbox img { max-width: 96vw; max-height: 92vh; width: auto; height: auto; background: #fff; }
.lightbox-close {
  position: absolute; top: 0.8rem; right: 1rem;
  background: #fff; border: 0; border-radius: 999px;
  width: 2.4rem; height: 2.4rem; cursor: pointer; font-size: 1.2rem;
}

/* Technik */
.tech-toc {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
  margin: 0 0 2rem;
}
.tech-toc a {
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  background: var(--bg-card);
}
.tech-toc a:hover { border-color: var(--magenta); color: var(--magenta-dark); }
.tech-block {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.6rem;
  padding: 2.2rem 0;
  border-top: 1px solid var(--line);
}
.tech-block .aside {
  position: sticky; top: calc(var(--header-h) + 1rem);
  align-self: start;
}
.meta-list { list-style: none; margin: 1rem 0 0; padding: 0; }
.meta-list li {
  display: flex; flex-direction: column;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.meta-list span { color: var(--ink-soft); font-size: 0.8rem; }
.prose h3 { margin-top: 1.4rem; }
.prose p { margin: 0 0 1rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.15rem; }
.prose li { margin: 0.25rem 0; }

/* Timeline / news */
.timeline { display: grid; gap: 1rem; }
.t-item {
  display: grid; grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
}
.t-item .when {
  font-weight: 700; color: var(--magenta-dark); font-size: 0.9rem;
}
.faq details {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  margin: 0 0 0.6rem;
}
.faq summary {
  cursor: pointer; font-weight: 650;
}
.faq details p { margin: 0.7rem 0 0.2rem; color: var(--ink-soft); }

/* Forms */
form.contact {
  display: grid; gap: 0.8rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}
label { font-weight: 600; font-size: 0.92rem; }
input, select, textarea {
  width: 100%; padding: 0.65rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font: inherit; background: #fff;
}
textarea { min-height: 8rem; resize: vertical; }
.form-msg {
  display: none;
  background: #eef4e2; border: 1px solid #d5e3b3;
  padding: 0.8rem 1rem; border-radius: var(--radius-sm);
}
.form-msg.is-visible { display: block; }

.contact-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 1.4rem;
}
.addr { font-style: normal; }
.addr p { margin: 0.2rem 0; }

/* Footer */
.site-footer {
  background: var(--ink);
  color: #e8e2d6;
  padding: 3rem 0 1.6rem;
  margin-top: 2rem;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 1.6rem;
}
.site-footer h2, .site-footer h3 {
  color: #fff; font-size: 1rem; margin: 0 0 0.7rem;
  font-family: var(--font); letter-spacing: 0.04em; text-transform: uppercase;
  font-weight: 700;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.3rem 0; }
.site-footer .brand { color: #fff; margin-bottom: 0.8rem; }
.site-footer .brand-sub { color: #c8c1b4; }
.legal {
  border-top: 1px solid #3a3833;
  margin-top: 2rem; padding-top: 1rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.85rem; color: #b9b3a6;
}
.legal a { color: #e8e2d6; }

/* Utilities */
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.page-hero { padding: 2.6rem 0 0.4rem; }
.page-hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.1rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 0.8rem;
  max-width: 20ch;
}

@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .flow-layout, .tech-block, .contact-grid { grid-template-columns: 1fr; }
  .flow-panel, .tech-block .aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 1.2rem 1rem;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a.nav-cta { margin-left: 0; text-align: center; }
  .grid-3, .grid-4, .grid-2, .stats, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
  }
  .stats .stat:last-child { grid-column: auto; }
  .t-item { grid-template-columns: 1fr; }
  .hero { padding-top: 2.6rem; }
  .flow-svg-wrap svg { min-width: 640px; }
}

/* Eisspeicher-Seite */
.es-section { padding: 3.4rem 0; border-top: 1px solid var(--line); }
.es-section.alt { background: var(--bg-soft); }
.es-section .intro { margin-bottom: 1.6rem; }
.es-body { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 2rem; align-items: start; }
.es-body.es-body-solo { grid-template-columns: minmax(0, 36rem); }
.es-facts {
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-soft);
}
.es-bullets { margin: 0; padding-left: 1.15rem; }
.es-bullets li { margin: 0 0 0.55rem; font-size: 0.97rem; }
.es-bullets li:last-child { margin-bottom: 0; }
.es-figure { margin: 2rem 0 0; }
.es-figure img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.teaser-band { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.teaser-band img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
@media (max-width: 860px) {
  .es-body, .teaser-band { grid-template-columns: 1fr; gap: 1.2rem; }
  .es-section { padding: 2.4rem 0; }
}


/* Infofilm Raumthermostat */
#infofilm { scroll-margin-top: calc(var(--header-h) + 1.2rem); }
.video-player {
  background: #1c1b19;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  margin: 0 0 1.6rem;
  max-width: 960px;
}
.video-player video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #1c1b19;
}
.video-subhead {
  margin: 0 0 0.7rem;
  font-size: 1.2rem;
}
.video-chapters {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  max-width: 52rem;
}
.video-chapters button {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  column-gap: 0.75rem;
  align-items: start;
  width: 100%;
  text-align: left;
  font: inherit;
  color: var(--ink);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  cursor: pointer;
}
.video-chapters button:hover { border-color: var(--magenta); background: #fffdf8; }
.video-chapters time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--magenta-dark);
  font-size: 0.92rem;
  padding-top: 0.12rem;
}
.video-chapters .chapter-detail {
  display: block;
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-top: 0.15rem;
  font-weight: 400;
}
.video-tips {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.3rem 1.2rem;
  box-shadow: var(--shadow-soft);
  max-width: 52rem;
}
.video-tips h3 { margin-bottom: 0.6rem; }
.video-tips ul { margin: 0; padding-left: 1.15rem; }
.video-tips li { margin: 0 0 0.45rem; }
.video-tips li:last-child { margin-bottom: 0; }
.teaser-poster { display: block; text-decoration: none; }
.teaser-poster img { width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }

/* Kontaktformular (Live) */
.form-msg:target { display: block; }
.form-msg.is-error { background: #fbeaea; border-color: #e6b8b8; }
.form-note { font-size: 0.88rem; color: var(--ink-soft); margin: 0; }
.hp-field { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
