:root {
    --bg: #f2f2f2;
    --panel: #ffffff;
    --text: #1a1a1a;
    --muted: #444444;
    --brand: #f28c00;
    --brand-2: #666666;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    --radius: 10px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial;
    color: var(--text);
    background: var(--bg);
}

.container {
    width: min(1100px, 92vw);
    margin-inline: auto;
}

header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--brand-2);
    color: #fff;
    height: 60px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand img {
    height: 60px;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 18px;
    font-weight: 600;
}

nav a:hover {
    color: var(--brand);
}

main {
    padding: 28px 0;
    display: grid;
    gap: 22px;
}

.card {
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px;
}

h1 {
    color: var(--brand);
    margin-top: 0;
}

h2 {
    margin-top: 0;
    color: var(--brand);
}

footer {
    color: #fff;
    background: var(--brand-2);
    padding: 15px 0 15px;
    margin-top: 40px;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    color: var(--brand);
}

img {
    max-width: 100%;
    height: auto;
}

.hero-img {
    border-radius: 10px;
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 22px;
    align-items: center;
    padding: 22px 0 22px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.15;
    margin: 0 0 14px;
    color: var(--brand);
}

.hero p {
    color: var(--muted);
    margin: 0 0 22px;
}

.cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    appearance: none;
    border: 0;
    cursor: pointer;
    padding: 12px 18px;
    border-radius: 6px;
    font-weight: 700;
    transition: background 0.2s, color 0.2s;
}

.btn.primary {
    background: var(--brand);
    color: #fff;
    box-shadow: var(--shadow);
}

.btn.primary:hover {
    background: #d67c00;
}

.btn.ghost {
    background: transparent;
    color: var(--brand);
    border: 2px solid var(--brand);
}

.btn.ghost:hover {
    background: var(--brand);
    color: #fff;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 0px 0 0px;
}

.feature h3 {
    margin-top: 8px;
    margin-bottom: 6px;
    font-size: 18px;
    color: var(--brand);
}

.section {
    padding: 28px;
    margin: 0 0 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding-top: 36px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    /* Kontaktformular – klare Größen & Ausrichtung */
    .form {
        display: grid;
        gap: 18px;
        max-width: 860px;          /* breiter, damit Felder nicht „klein“ wirken */
    }

}

.form label {
    font-weight: 700;
    width: 60%;
}

.form input,
.form textarea {
    width: 100%;               /* volle Breite */
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #d3d6db;
    background: #fff;
    font-size: 18px;           /* größerer Text => visuell größere Felder */
    line-height: 1.4;
    box-sizing: border-box;
}

.form textarea {
    min-height: 280px;         /* Nachricht initial deutlich größer */
    font-size: 16px;           /* größerer Text => visuell größere Felder */
    resize: vertical;
}

/* Raster: mobil 1 Spalte, ab 900px 2 Spalten */
.form {
    grid-template-columns: 1fr;
    grid-template-areas:
    "name"
    "email"
    "phone"
    "subject"
    "msg"
    "actions"
    "note";
}

@media (min-width: 900px) {
    .form {
        grid-template-columns: 1fr 1fr;
        column-gap: 22px;        /* definierter Spaltenabstand */
        grid-template-areas:
      "name    email"
      "phone   subject"
      "msg     msg"
      "actions actions"
      "note    note";
    }
}

.field--name    { grid-area: name; }
.field--email   { grid-area: email; }
.field--phone   { grid-area: phone; }
.field--subject { grid-area: subject; }
.field--msg     { grid-area: msg; }
.form .actions  { grid-area: actions; }
.form .note     { grid-area: note; }

/* Buttons */
.form .actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Klickbare Karten-Links */
.card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}
.card-link .more {
    font-weight: 700;
    margin: 8px 0 0;
}
.card-link:hover .more {
    text-decoration: underline;
}
.card-link:focus {
    outline: 2px solid var(--brand);
    outline-offset: 6px;
}

/* Zum-Anfang Button */
.to-top {
    display: flex;              /* Flexbox nutzen */
    justify-content: flex-end;  /* Inhalt nach rechts */
    margin-top: 18px;
}
.to-top a {
    font-size: 14px;
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
}
.to-top a:hover {
    text-decoration: underline;
}

/* === Podcast Player === */
.podcast-section {
    padding: clamp(0px, 0vw, 0px) 0px;
    background: radial-gradient(1200px 800px at 20% -10%, rgba(255,255,255,0.08), transparent),
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
}

.podcast-card {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: center;
    /* neu: wie andere Karten */
    background: var(--panel);            /* Card übernimmt Panel-Hintergrund */
    border: 0;                          /* keine Extra-Grenze */
    box-shadow: var(--shadow);                   /* Schatten kommt von .card */
    border-radius: var(--radius);
    padding: 0;
}

.podcast-cover img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.podcast-meta h2 {
    margin: 0 0 6px 0;
    font-size: clamp(1.3rem, 2.2vw, 1.9rem);
    line-height: 1.25;
    letter-spacing: .2px;
}

.podcast-sub {
    margin: 0 0 16px 0;
    opacity: .8;
    font-size: .95rem;
}

.podcast-desc {
    margin-top: 14px;
    opacity: .85;
}

.nowrap { white-space: nowrap; }

/* Player core */
.audio-player {
    --c-bg: rgba(255,255,255,0.06);
    --c-border: rgba(255,255,255,0.12);
    --c-accent: #7dd3fc; /* tailwind sky-300 vibe */
    --radius: 14px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 12px;
}

.controls {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
    "main time right";
    gap: 10px 14px;
    align-items: center;
}

.controls .btn {
    font: inherit;
    line-height: 1;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid var(--c-border);
    background: rgba(255,255,255,0.05);
    cursor: pointer;
    transition: transform .06s ease, background .15s ease, border-color .15s ease;
    user-select: none;
}

.controls .btn:hover {
    background: rgba(255,255,255,0.09);
    border-color: rgba(255,255,255,0.22);
}

.controls .btn:active { transform: translateY(1px) scale(.99); }
.controls .btn.primary { box-shadow: 0 4px 18px rgba(125,211,252,.25); border-color: rgba(125,211,252,.5); }
.controls .btn.ghost { background: transparent; }

.controls .icon { width: 44px; text-align: center; }

.timewrap {
    grid-area: time;
    display: grid;
    grid-template-columns: 56px 1fr 56px;
    gap: 10px;
    align-items: center;
}

#current, #duration { opacity: .85; font-variant-numeric: tabular-nums; text-align: center; }

.seek {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--c-accent) 0%, var(--c-accent) 0%, rgba(255,255,255,.18) 0%);
    outline: none;
}
.seek::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px; height: 18px; border-radius: 50%;
    background: white; border: 2px solid var(--c-accent);
    box-shadow: 0 0 0 6px rgba(125,211,252,.15);
    cursor: pointer;
}
.seek::-moz-range-thumb {
    width: 18px; height: 18px; border-radius: 50%;
    background: white; border: 2px solid var(--c-accent);
    box-shadow: 0 0 0 6px rgba(125,211,252,.15);
    cursor: pointer;
}

/* Range fill (live progress) */
.seek {
    position: relative;
    background-size: 0% 100%;
    background-repeat: no-repeat;
}
.seek.update-bg {
    background-image: linear-gradient(90deg, var(--c-accent), var(--c-accent));
}

/* Right control cluster */
.right-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vol, .speed {
    height: 32px;
    border-radius: 10px;
    border: 1px solid var(--c-border);
    background: rgba(255,255,255,0.04);
    padding: 4px 8px;
}
.vol {
    width: 110px;
    -webkit-appearance: none; appearance: none;
}
.vol::-webkit-slider-thumb,
.vol::-moz-range-thumb {
    width: 14px; height: 14px; border-radius: 50%;
    background: white; border: 2px solid var(--c-accent);
    box-shadow: 0 0 0 4px rgba(125,211,252,.15);
}

.speed {
    color: inherit;
    cursor: pointer;
}

/* Main control group alignment */
/* Grid sauber definieren */
.controls {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "main time right";
    gap: 10px 14px;
    align-items: center;
}

.main-controls {
    grid-area: main;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timewrap { grid-area: time; }

.right-controls { grid-area: right; display: flex; align-items: center; gap: 10px; }

/* Mobile: untereinander */
@media (max-width: 620px) {
    .controls {
        grid-template-columns: 1fr;
        grid-template-areas:
      "main"
      "time"
      "right";
    }
    .right-controls { justify-content: space-between; }
}

/* Responsive */
@media (max-width: 860px) {
    .podcast-card { grid-template-columns: 1fr; }
    .podcast-cover { order: -1; }
}

@media (max-width: 560px) {
    .timewrap { grid-template-columns: 44px 1fr 44px; }
    .right-controls { gap: 8px; }
    .vol { width: 90px; }
}

html { scroll-behavior: smooth; }

pre, code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }
pre { background:#f7f7f7; border:1px solid #e5e5e5; border-radius:8px; padding:12px 14px; overflow:auto; }

.card ul { margin: 10px 0 0 20px; padding: 0; }
.card li + li { margin-top: 6px; }
