/*
Theme Name: Netzwal
Theme URI: https://netzwal.de
Author: Daniel Greßmann
Description: Block-Theme „Tiefsee“ für Netzwal – Internet ohne Vertragsbindung.
Version: 0.1.1
Requires at least: 6.6
Requires PHP: 8.1
License: GPL-2.0-or-later
Text Domain: netzwal
*/

/* Grundlagen */
:root { --nw-radius-sm: 10px; --nw-radius-md: 14px; --nw-radius-lg: 20px; --nw-control: 48px; }
body { -webkit-font-smoothing: antialiased; }
:where(a, button, input, select, summary):focus-visible { outline: 3px solid var(--wp--preset--color--focus); outline-offset: 2px; }
::placeholder { color: #7FA0BF; opacity: 1; }

/* Kopf und Fuß */
.nw-header { border-bottom: 1px solid var(--wp--preset--color--line-subtle); padding-top: 14px; padding-bottom: 14px; }
.nw-header .wp-block-navigation a { color: var(--wp--preset--color--ink-soft); padding: 12px 8px; text-decoration: none; }
.nw-header .wp-block-navigation a:hover { color: var(--wp--preset--color--accent); }
.nw-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--bg-800); color: var(--wp--preset--color--ink); }
.nw-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--wp--preset--color--ink); text-decoration: none; min-height: 44px; }
.nw-logo-text { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 24px; letter-spacing: .5px; }
.nw-footer { border-top: 1px solid var(--wp--preset--color--line-subtle); padding-top: 32px; padding-bottom: 32px; margin-top: 0; }
.nw-footer p { margin: 0; max-width: 620px; }
.nw-footer-links { display: flex; gap: 20px; }
.nw-footer-links a { color: var(--wp--preset--color--ink); }
.nw-main { padding-top: 56px; padding-bottom: 72px; }

/* Startseite: Kopfbereich */
.nw-hero { text-align: center; padding-top: 64px; padding-bottom: 48px; }
.nw-hero .nw-wal { display: block; margin: 0 auto; width: min(300px, 70vw); height: auto; }
.nw-hero h1 { max-width: 820px; margin-left: auto; margin-right: auto; }
.nw-hero .nw-lead { max-width: 620px; margin-left: auto; margin-right: auto; color: var(--wp--preset--color--ink-muted); }

/* Rechner-Formular */
.nw-form { max-width: 920px; margin: 24px auto 0; box-sizing: border-box; background: var(--wp--preset--color--bg-700); border: 1px solid var(--wp--preset--color--line-card); border-radius: 16px; padding: 20px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; text-align: left; }
.nw-form label { flex: 1 1 180px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--wp--preset--color--ink-muted); }
.nw-form select, .nw-form input { height: var(--nw-control); box-sizing: border-box; border: 1.5px solid var(--wp--preset--color--line-control); border-radius: var(--nw-radius-sm); padding: 0 12px; font: inherit; font-size: 16px; background: var(--wp--preset--color--bg-800); color: var(--wp--preset--color--ink); }
.nw-form button { flex: 1 1 180px; height: var(--nw-control); border: 0; border-radius: var(--nw-radius-sm); background: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent); font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; }
.nw-form button:hover { background: var(--wp--preset--color--accent-hover); }
.nw-form-note { font-size: 14px; color: var(--wp--preset--color--ink-muted); text-align: center; margin-top: 12px; }

/* Ergebnis-Podium */
.nw-results-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.nw-results-head h2 { margin: 0; }
.nw-results-head p { margin: 0; color: var(--wp--preset--color--ink-muted); font-size: 14px; }
.nw-podium { display: flex; flex-wrap: wrap; align-items: stretch; gap: 16px; margin-top: 20px; padding: 0; list-style: none; }
.nw-pod { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 16px; background: var(--wp--preset--color--bg-700); border: 1px solid var(--wp--preset--color--line-card); border-radius: var(--nw-radius-md); padding: 24px; }
.nw-pod--1 { border: 2px solid var(--wp--preset--color--accent); }
.nw-medal { display: flex; align-items: center; gap: 12px; color: var(--wp--preset--color--ink-muted); font-size: 13px; font-weight: 500; }
.nw-medal span { width: 44px; height: 44px; border-radius: 22px; display: flex; align-items: center; justify-content: center; font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 22px; color: var(--wp--preset--color--on-accent); }
.nw-pod--1 .nw-medal span { background: var(--wp--preset--color--accent); }
.nw-pod--2 .nw-medal span { background: var(--wp--preset--color--silver); }
.nw-pod--3 .nw-medal span { background: var(--wp--preset--color--bronze); }
.nw-pod h3 { margin: 0; font-family: var(--wp--preset--font-family--sans); font-size: 18px; font-weight: 600; line-height: 1.45; }
.nw-term { margin: 4px 0 0; color: var(--wp--preset--color--ink-muted); font-size: 14px; }
.nw-prices { display: flex; flex-wrap: wrap; gap: 24px; margin: 0; }
.nw-prices div { display: flex; flex-direction: column; gap: 2px; }
.nw-prices dt { color: var(--wp--preset--color--ink-muted); font-size: 13px; }
.nw-prices dd { margin: 0; }
.nw-total { font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 28px; line-height: 1.2; color: #fff; }
.nw-month { font-weight: 600; font-size: 18px; line-height: 34px; }
.nw-pod .nw-cta { margin-top: auto; text-align: center; padding: 14px 20px; border-radius: var(--nw-radius-sm); border: 1.5px solid var(--wp--preset--color--accent); color: var(--wp--preset--color--accent); font-weight: 600; text-decoration: none; }
.nw-pod .nw-cta:hover { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--on-accent); }

/* Hinweisbox */
.nw-hinweis { background: var(--wp--preset--color--bg-600); border: 1px solid #22507A; border-radius: var(--nw-radius-lg); padding: 40px; }
.nw-hinweis p { color: var(--wp--preset--color--ink-soft); }

/* Listen */
.nw-links { list-style: none; padding: 0; margin: 0; }
.nw-links li { border-bottom: 1px solid var(--wp--preset--color--line-subtle); }
.nw-links a { display: block; padding: 10px 0; text-decoration: none; }
.nw-check li { color: var(--wp--preset--color--ink-soft); margin-bottom: 8px; }

/* Fließtext auf Inhaltsseiten */
.nw-main .wp-block-post-content { max-width: 70ch; }

@media (max-width: 600px) {
  .nw-hinweis { padding: 24px; }
  .nw-hero { padding-top: 40px; }
}

/* Abstände zwischen den Bereichen der Startseite */
.wp-block-post-content > .nw-results,
.wp-block-post-content > .nw-hinweis,
.wp-block-post-content > .nw-info { margin-block-start: var(--wp--preset--spacing--80); }
.wp-block-post-content > .nw-info { margin-block-end: var(--wp--preset--spacing--90); }
