/* Physik der Töne – nur die seitenspezifischen Visuals (Wellen-Animationen,
   Frequenzkarten, Frequenztabelle). Kapitel-Layout, Erklärungs-Boxen und
   Tabellen kommen aus theory/css/chords.css, damit alle Theorie-Seiten
   denselben Look teilen. Baut auf base.css (Farb-Variablen) auf. */

/* ── Figur mit Animation ────────────────────── */
.physik-figure {
    max-width: 760px;
    margin: 20px auto 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    overflow: hidden;
}

.physik-figure-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
}

.physik-tag {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid var(--color-interval);
    border-radius: 999px;
    color: var(--color-interval);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: .04em;
}

.physik-figure-head .physik-sub {
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #888;
}

.physik-figure canvas {
    display: block;
    width: 100%;
    background: #fafafa;
}

.physik-figure figcaption {
    padding: 12px 16px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
}

/* Raster für die vier Intervall-Kacheln bzw. Figur + Tabelle nebeneinander */
.physik-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 760px;
    margin: 20px auto 0;
}

.physik-grid .physik-figure {
    margin: 0;
    max-width: none;
}

@media (max-width: 640px) {
    .physik-grid {
        grid-template-columns: 1fr;
    }
}

/* Rot markierte Verhältnis-Spalte in den Tabellen (physik-Akzent) */
.chord-table td.ratio {
    color: var(--color-root);
    font-weight: bold;
}

/* ── Frequenz-Karten ────────────────────────── */
.hz-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    max-width: 760px;
    margin: 20px auto 0;
}

.hz-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    padding: 18px 16px;
}

.hz-card .hz-value {
    font-size: 32px;
    font-weight: bold;
    line-height: 1.1;
    color: #333;
}

.hz-card.accent .hz-value {
    color: var(--color-root);
}

.hz-card .hz-divider {
    height: 1px;
    background: #eee;
    margin: 10px 0;
}

.hz-card .hz-label {
    font-size: 13px;
    color: #555;
    line-height: 1.4;
}

/* ── Frequenztabelle (drei Oktaven) ─────────── */
.freq-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 760px;
    margin: 20px auto 0;
}

.freq-col {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
    padding: 14px 18px;
}

.freq-col h3 {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--color-interval);
}

.freq-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.freq-row:last-child {
    border-bottom: 0;
}

.freq-row .freq-name {
    font-weight: bold;
}

@media (max-width: 640px) {
    .freq-cols {
        grid-template-columns: 1fr;
    }
}

/* ── Abschluss-Banner ───────────────────────── */
.physik-banner {
    max-width: 760px;
    margin: 40px auto;
    background: var(--color-root);
    color: #fff;
    border-radius: 8px;
    padding: 28px 26px;
}

.physik-banner h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 24px;
    max-width: 24ch;
}

.physik-banner p {
    margin: 0;
    max-width: 56ch;
    line-height: 1.5;
    opacity: .95;
}

.physik-banner a {
    color: #fff;
    font-weight: bold;
}
