/* IZY Laden. Farben und Schrift wie izy-hosting.de: Blau #34488b, Gelb #eac207, Weiß, Poppins. */
@font-face { font-family: "Poppins"; font-weight: 400; font-display: swap; src: url("fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url("fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url("fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-display: swap; src: url("fonts/poppins-latin-800-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --blue: #34488b; --blue-dark: #263670; --blue-soft: #eef1f8; --blue-line: #d6dcec;
  --yellow: #eac207; --yellow-soft: #fdf6d6;
  --green: #1e8a4c; --green-soft: #e3f4ea; --red: #c2352b; --red-soft: #fbe7e5;
  --amber: #a5600a; --amber-soft: #fcefd9; --grey: #6b7389; --grey-soft: #eef0f4;
  --text: #1c2340; --muted: #5d6680; --bg: #f5f7fb; --card: #ffffff;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
/* Kein seitliches Verschieben auf dem Handy, auch wenn ein Element zu breit gerät */
body { overflow-x: clip; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text);
  font: 400 16px/1.55 "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 5vw, 2.6rem); font-weight: 800; }
h2 { font-size: 1.3rem; font-weight: 700; color: var(--blue); }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; width: 100%; }
main.wrap { flex: 1 0 auto; }
#status { scroll-margin-top: 80px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

/* Kopf */
.top { background: #fff; border-bottom: 1px solid var(--blue-line); position: sticky; top: 0; z-index: 5; }
.top .wrap { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue); font-weight: 800; font-size: 1.15rem; white-space: nowrap; }
.brand img { width: 40px; height: 40px; }
.brand span small { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-top: -2px; }
.nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.nav a.link { color: var(--blue); font-weight: 600; text-decoration: none; padding: 8px 10px; border-radius: 999px; }
.nav a.link.on { background: var(--blue-soft); }
@media (max-width: 560px) { .nav a.link.hide-s { display: none; } .brand span small { display: none; } }
/* Handy: im Kopf nur Logo und „Anmelden“ als Knopf, „Konto anlegen“ steht groß auf der Seite */
@media (max-width: 480px) {
  .nav .hide-xs { display: none; }
  .nav a.link.login { background: var(--yellow); color: var(--blue-dark, #25346a); padding: 8px 16px; }
  .top .wrap { gap: 8px; }
  .brand { min-width: 0; }
}
@media (max-width: 400px) { .brand { font-size: 1rem; gap: 8px; } .brand img { width: 34px; height: 34px; } .nav { gap: 2px; } .nav a.link { padding: 8px 6px; } .nav .btn-small { padding: 6px 12px; } }

/* Knöpfe */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid transparent;
  border-radius: 999px; padding: 10px 20px; font: 600 1rem "Poppins", sans-serif; text-decoration: none; cursor: pointer;
  min-height: 46px; white-space: nowrap; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); }
.btn-yellow { background: var(--yellow); color: var(--blue-dark); }
.btn-yellow:hover { filter: brightness(.96); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-small { min-height: 38px; padding: 6px 14px; font-size: .9rem; }
.btn-block { width: 100%; }

/* Startbereich */
.hero { background: var(--blue); color: #fff; padding: 40px 0 88px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -120px; top: -80px; width: 380px; height: 380px; border-radius: 50%;
  border: 36px solid rgba(234, 194, 7, .14); }
.hero .kicker { color: var(--yellow); font-weight: 700; margin-bottom: .4em; }
.hero p.lead { max-width: 620px; font-size: 1.05rem; color: rgba(255,255,255,.9); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.lift { margin-top: -60px; position: relative; z-index: 2; }

/* Karten */
.card { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: 0 6px 24px rgba(38, 54, 112, .08);
  border: 1px solid var(--blue-line); margin-bottom: 18px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
section { padding: 8px 0 18px; }

/* Belegung */
.status-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.status-sum { font-size: 1.6rem; font-weight: 800; color: var(--blue); }
.boxes { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.boxes li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--grey-soft); font-weight: 600; }
.boxes li small { display: block; font-weight: 400; color: var(--muted); }
.dot { width: 14px; height: 14px; border-radius: 50%; flex: none; background: var(--grey); box-shadow: 0 0 0 4px rgba(107,115,137,.18); }
.state-frei { background: var(--green-soft) !important; } .state-frei .dot { background: var(--green); box-shadow: 0 0 0 4px rgba(30,138,76,.18); }
.state-belegt { background: var(--red-soft) !important; } .state-belegt .dot { background: var(--red); box-shadow: 0 0 0 4px rgba(194,53,43,.16); }
.state-stoerung { background: var(--amber-soft) !important; } .state-stoerung .dot { background: var(--amber); }

/* Tarife */
.tariff { position: relative; overflow: hidden; }
.tariff .chip { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 4px 12px 4px 6px; border-radius: 999px; margin-bottom: 10px; }
.tariff .chip i, .cardchip i { width: 22px; height: 22px; border-radius: 50%; display: inline-block; }
.chip-black { background: #ececef; color: #1d2029; } .chip-black i { background: #1d2029; }
.chip-green { background: var(--green-soft); color: var(--green); } .chip-green i { background: #2fa463; }
.price { font-size: 2.2rem; font-weight: 800; color: var(--blue); line-height: 1.1; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-lines { margin: 6px 0 12px; }
.tariff.green { border-top: 6px solid #2fa463; } .tariff.black { border-top: 6px solid #1d2029; }
.note { padding: 12px 16px; border-radius: 12px; background: var(--yellow-soft); border-left: 5px solid var(--yellow); margin: 0 0 16px; }
.note.info { background: var(--blue-soft); border-left-color: var(--blue); }
.note.ok { background: var(--green-soft); border-left-color: var(--green); }
.note.err { background: var(--red-soft); border-left-color: var(--red); }
table.calc { width: 100%; border-collapse: collapse; }
table.calc td { padding: 8px 0; border-bottom: 1px solid var(--blue-line); }
table.calc td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px; }
table.calc tr.sum td { font-weight: 700; border-bottom: 0; border-top: 2px solid var(--blue); }

/* Schritte */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--blue-line); border-radius: 14px; padding: 16px 16px 16px 62px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--yellow); color: var(--blue-dark); font-weight: 800; display: grid; place-items: center; }
.steps strong { display: block; color: var(--blue); }

/* Formulare */
form.stack { display: grid; gap: 14px; }
label { font-weight: 600; font-size: .92rem; display: grid; gap: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number] {
  font: 400 1rem "Poppins", sans-serif; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--blue-line);
  background: #fff; color: var(--text); width: 100%; }
input:focus { outline: 3px solid rgba(52,72,139,.25); border-color: var(--blue); }
label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
label.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.auth { max-width: 460px; margin: 28px auto; }

/* Konto */
.balance { font-size: 2.6rem; font-weight: 800; color: var(--blue); line-height: 1.1; margin: 4px 0 14px; }
.balance.neg { color: var(--red); }
.cards { display: flex; flex-wrap: wrap; gap: 10px; }
.cardchip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; font-weight: 600; }
.cardchip small { display: block; font-weight: 400; color: var(--muted); }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--blue-line); display: flex; justify-content: space-between; gap: 12px; }
.list li:last-child { border-bottom: 0; }
.list .amount { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.list .plus { color: var(--green); }
.bar { height: 8px; border-radius: 4px; background: var(--grey-soft); overflow: hidden; margin-top: 6px; display: flex; max-width: 220px; }
.bar span { background: var(--yellow); }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; vertical-align: middle; }
.tag.oeko { background: var(--green-soft); color: var(--green); } .tag.schnell { background: var(--blue-soft); color: var(--blue); }
.tag.live { background: var(--yellow); color: var(--blue-dark); }

/* Aufladen */
.amounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.amounts label { margin: 0; }
.amounts input { position: absolute; opacity: 0; }
.amounts span { display: block; text-align: center; padding: 14px 6px; border-radius: 12px; border: 2px solid var(--blue-line); font-weight: 700; cursor: pointer; background: #fff; }
.amounts input:checked + span { border-color: var(--blue); background: var(--blue); color: #fff; }
.amounts input:focus-visible + span { outline: 3px solid rgba(52,72,139,.35); }
#paypal { min-height: 60px; margin-top: 10px; }

/* Fuß */
footer { flex-shrink: 0; margin-top: 30px; padding: 26px 0 40px; background: var(--blue); color: rgba(255,255,255,.85); font-size: .9rem; }
footer a { color: #fff; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; }
footer .sep { flex: 1; }

/* Chips bestellen */
.chip-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chip-pick label { background: var(--grey-soft); border-radius: 12px; padding: 10px; gap: 8px; }
.chip-pick .cardchip { padding: 6px 10px 6px 6px; }
.chip-pick select, .two input { font: 400 1rem "Poppins", sans-serif; }
.chip-pick select { padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--blue-line); background: #fff; }
.two { display: grid; grid-template-columns: 7rem 1fr; gap: 10px; }
dialog { border: 0; border-radius: var(--radius); padding: 20px; width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 24px); box-shadow: 0 20px 60px rgba(28, 35, 64, .35); }
dialog::backdrop { background: rgba(28, 35, 64, .55); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.dialog-head h2 { margin: 0; }
.dialog-close { border: 0; background: var(--grey-soft); width: 38px; height: 38px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; color: var(--text); }
@media (max-width: 400px) { .chip-pick { grid-template-columns: 1fr; } }

.btn-paypal { background: #ffc439; color: #142c8e; font-weight: 600; }
.btn-paypal:hover { filter: brightness(.97); }
.btn-paypal strong { font-weight: 800; font-style: italic; }
