        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Oxygen, Ubuntu, Cantarell, sans-serif;
            background: #f7f9fc;
            color: #1e293b;
            line-height: 1.6;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* Seiten-Header: volle Breite, blauer Hintergrund wie das Ergebnis, mit Branding + Navigation */
        .site-header {
            width: 100%;
            background: #2563eb;
            position: relative;
        }

        .site-header-inner {
            max-width: 1100px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding: 10px 24px;
            flex-wrap: wrap;
        }

        .site-brand {
            display: flex;
            align-items: center;
        }

        .site-brand svg {
            height: 40px;
            width: auto;
            display: block;
        }

        .site-nav {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }

        .site-nav a {
            color: rgba(255, 255, 255, 0.85);
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
            transition: color 0.15s ease;
        }

        .site-nav a:hover {
            color: #ffffff;
        }

        /* Hamburger-Button, standardmäßig nur auf Mobile sichtbar (siehe Media Query) */
        .nav-toggle {
            display: none;
            width: 32px;
            height: 32px;
            border: none;
            background: none;
            cursor: pointer;
            padding: 4px;
            flex-shrink: 0;
        }

        .nav-toggle svg {
            width: 100%;
            height: 100%;
        }

        /* SEO-Erklärtext unterhalb des Rechners, below the fold */
        .seo-content {
            width: 100%;
            background: #ffffff;
            border-top: 1px solid #e8edf3;
        }

        .seo-content-inner {
            max-width: 700px;
            margin: 0 auto;
            padding: 40px 20px 60px;
        }

        .seo-content h2 {
            font-size: 20px;
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 14px;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        }

        .seo-content h3 {
            font-size: 17px;
            font-weight: 600;
            color: #1e293b;
            margin: 26px 0 8px;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        }

        .seo-content p {
            font-size: 15px;
            color: #475569;
            line-height: 1.7;
        }

        .seo-content a {
            color: #2563eb;
            text-decoration: underline;
            text-decoration-color: #bfdbfe;
        }

        .seo-content a:hover {
            text-decoration-color: #2563eb;
        }

        .seo-content ol.step-list {
            list-style: none;
            counter-reset: step-counter;
            margin: 12px 0 20px;
        }

        .seo-content ol.step-list li {
            counter-increment: step-counter;
            display: flex;
            gap: 12px;
            font-size: 15px;
            color: #475569;
            line-height: 1.7;
            margin-bottom: 10px;
        }

        .seo-content ol.step-list li::before {
            content: counter(step-counter);
            flex-shrink: 0;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: #2563eb;
            color: #ffffff;
            font-size: 12px;
            font-weight: 700;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-top: 2px;
        }

        /* Formelbeispiele im Fließtext nutzen dieselbe .math-line-Darstellung wie der Rechenweg */
        .seo-content .math-line {
            margin: 4px 0 16px;
        }

        /* Absetzung von Rechner-Verweisen innerhalb des Fließtexts, damit der Lesefluss nicht gestört wird */
        .content-note {
            margin: 12px 0 20px;
            padding: 14px 18px;
            background: #f3f7fa;
            border-left: 3px solid #2563eb;
            border-radius: 4px;
            font-size: 14px;
            color: #475569;
            line-height: 1.7;
        }

        /* FAQ-Akkordeon */
        .faq-accordion {
            margin: 12px 0 8px;
        }

        .faq-item {
            border-bottom: 1px solid #e8edf3;
        }

        .faq-item:first-child {
            border-top: 1px solid #e8edf3;
        }

        .faq-question {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            background: none;
            border: none;
            cursor: pointer;
            text-align: left;
            padding: 16px 0;
            font-family: 'Roboto', -apple-system, sans-serif;
            font-size: 15px;
            font-weight: 600;
            color: #1e293b;
        }

        .faq-chevron {
            width: 17px;
            height: 17px;
            color: #94a3b8;
            flex-shrink: 0;
            transition: transform 0.2s ease;
        }

        .faq-item.open .faq-chevron {
            transform: rotate(180deg);
        }

        .faq-answer {
            display: none;
            padding: 0 0 16px;
        }

        .faq-item.open .faq-answer {
            display: block;
        }

        .faq-answer p {
            font-size: 15px;
            color: #475569;
            line-height: 1.7;
        }

        .seo-content ul.mode-list {
            margin: 4px 0 20px;
            padding-left: 4px;
            list-style: none;
        }

        .seo-content ul.mode-list li {
            font-size: 15px;
            color: #475569;
            line-height: 1.7;
            padding-left: 18px;
            position: relative;
            margin-bottom: 8px;
        }

        .seo-content ul.mode-list li::before {
            content: "";
            position: absolute;
            left: 0;
            top: 10px;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #2563eb;
        }

        /* Eigener, farblich abgesetzter Block für die Sitemap-Linkliste am Seitenende */
        .page-list-block {
            margin-top: 40px;
            padding: 28px 24px 24px;
            border-top: 1px solid #e2e8f0;
            background: #f8fafc;
            border-radius: 6px;
        }

        .page-list-block h3 {
            margin-top: 0;
            margin-bottom: 20px;
        }

        .seo-content ul.page-list {
            margin: 4px 0 8px;
            padding-left: 4px;
            list-style: none;
            column-count: 2;
            column-gap: 32px;
        }

        .seo-content ul.page-list li {
            font-size: 15px;
            line-height: 1.9;
            break-inside: avoid;
        }

        .seo-content ul.page-list li.page-list-heading {
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: #94a3b8;
            margin-top: 16px;
        }

        .seo-content ul.page-list li.page-list-heading:first-child {
            margin-top: 0;
        }

        @media (max-width: 600px) {
            .seo-content ul.page-list {
                column-count: 1;
            }
        }

        /* Seiten-Footer: Impressum/Datenschutz */
        .site-footer {
            margin-top: auto;
            width: 100%;
            background: #f1f5f9;
            border-top: 1px solid #e2e8f0;
        }

        .site-footer-inner {
            max-width: 1100px;
            margin: 0 auto;
            padding: 20px 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
            font-size: 13px;
            color: #64748b;
        }

        .site-footer-links {
            display: flex;
            gap: 16px;
        }

        .site-footer-links a {
            color: #64748b;
            text-decoration: none;
        }

        .site-footer-links a:hover {
            color: #2563eb;
            text-decoration: underline;
        }

        /* Austauschbare Seiten-Überschrift: eigener weißer Block, linksbündig,
           damit sie sich klar vom Rechner darunter absetzt */
        header {
            background: #ffffff;
            padding: 28px 20px 28px;
            border-bottom: 1px solid #e8edf3;
        }

        .page-header-inner {
            max-width: 780px;
            margin: 0 auto;
            text-align: center;
        }

        header h1 {
            font-size: 26px;
            font-weight: 600;
            color: #1e293b;
            margin-bottom: 4px;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
        }

        header p {
            font-size: 14px;
            color: #94a3b8;
        }

        .main {
            max-width: 780px;
            margin: 0 auto;
            padding: 100px 20px 100px;
        }

        .error {
            color: #1e40af;
            font-weight: 600;
            font-size: 13px;
            padding: 10px 0;
            text-align: center;
            display: none;
            margin-bottom: 10px;
        }

        .error.show {
            display: block;
        }

        /* THE FORMULA - large, centered, minimal, wraps */
        .formula-row {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 16px;
            flex-wrap: wrap;
            margin: 16px 0 12px;
        }

        .operand {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            position: relative;
        }

        .operand input {
            width: 90px;
            padding: 6px 4px;
            border: none;
            background: transparent;
            font-size: 34px;
            text-align: center;
            font-weight: 600;
            color: #1e293b;
            font-family: 'Courier New', monospace;
            transition: color 0.15s ease;
            border-radius: 4px;
        }

        .operand input:focus {
            outline: none;
            color: #2563eb;
            background: #eff6ff;
        }

        .fraction-bar {
            width: 70px;
            height: 3px;
            background: #1e293b;
            border-radius: 2px;
        }

        /* Reihe aus (optionalem) Ganzzahl-Teil + Bruch; operand selbst bleibt immer eine Spalte,
           damit die Controls darunter nie ihre Position wechseln.
           Feste Höhe, damit der Block bei allen Modi (Bruch/ganze Zahl/gemischt) gleich hoch ist. */
        .operand-main {
            display: flex;
            align-items: center;
            gap: 8px;
            min-height: 96px;
        }

        /* Wrapper um Zähler/Bruchstrich/Nenner - feste Höhe unabhängig von Schriftgröße */
        .fraction-part {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            min-height: 96px;
        }

        /* display:none, damit die einzelne Zahl in der festen Höhe der Box zentriert wird
           (statt an der "Zähler"-Position zu bleiben, weil unsichtbarer Platz darunter reserviert wäre) */
        .operand.whole-mode .fraction-bar,
        .operand.whole-mode .denom-input {
            display: none;
        }

        .operand.whole-mode .num-input {
            width: 110px;
        }

        /* Gemischte Zahl: ganzer Teil groß + kleinerer Bruch daneben */
        .operand .whole-part-input {
            display: none;
            width: 46px;
        }

        .operand.mixed-mode .whole-part-input {
            display: block;
        }

        .operand.mixed-mode .num-input,
        .operand.mixed-mode .denom-input {
            width: 46px;
            font-size: 22px;
        }

        .operand.mixed-mode .fraction-bar {
            width: 40px;
        }

        /* Dezimal-Eingabemodus: ersetzt Zähler/Nenner durch ein einzelnes Dezimalfeld */
        .operand.decimal-mode .operand-main > *:not(.decimal-input),
        .operand.percent-mode .operand-main > *:not(.decimal-input):not(.percent-suffix) {
            display: none;
        }

        .percent-suffix {
            font-size: 32px;
            font-weight: 700;
            font-family: 'Courier New', monospace;
            color: #1e293b;
            margin-left: 2px;
        }

        .decimal-input {
            width: 7ch;
            min-width: 70px;
            height: 120px;
            font-size: 32px;
            font-family: 'Courier New', monospace;
            text-align: center;
            border: none;
            border-bottom: 2px solid #cbd5e1;
            background: transparent;
            color: #1e293b;
            -moz-appearance: textfield;
        }

        .decimal-input::-webkit-outer-spin-button,
        .decimal-input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .decimal-input:focus {
            outline: none;
            border-bottom-color: #2563eb;
        }

        .operand.decimal-mode .mode-toggle,
        .operand.percent-mode .mode-toggle,
        .operand.single-term .mode-toggle {
            display: none;
        }

        /* Bruch erweitern: zusätzliches Feld für den Ziel-Nenner neben dem Bruch */
        .expand-target {
            display: flex;
            align-items: center;
            gap: 6px;
            margin-left: 4px;
        }

        .expand-arrow {
            font-size: 20px;
            color: #94a3b8;
        }

        .expand-target-input {
            width: 3ch;
            min-width: 46px;
            height: 60px;
            font-size: 28px;
            font-family: 'Courier New', monospace;
            text-align: center;
            border: none;
            border-bottom: 2px solid #cbd5e1;
            background: transparent;
            color: #1e293b;
            -moz-appearance: textfield;
        }

        .expand-target-input::-webkit-outer-spin-button,
        .expand-target-input::-webkit-inner-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

        .expand-target-input:focus {
            outline: none;
            border-bottom-color: #2563eb;
        }

        .operand-controls {
            display: flex;
            gap: 4px;
            margin-top: 6px;
        }

        .mode-toggle {
            min-width: 32px;
            height: 22px;
            padding: 0 6px;
            border: none;
            background: #eef2f9;
            border-radius: 5px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: 700;
            font-family: 'Courier New', monospace;
            color: #64748b;
            transition: all 0.2s ease;
            letter-spacing: -0.5px;
        }

        .mode-toggle:hover {
            background: #dbeafe;
            color: #2563eb;
        }

        .remove-term {
            width: 22px;
            height: 22px;
            border: none;
            background: #fee2e2;
            border-radius: 5px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            color: #dc2626;
            transition: all 0.2s ease;
        }

        .remove-term:hover {
            background: #fecaca;
        }

        /* Operator area */
        .operator-area {
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .operator-picker {
            display: flex;
            flex-direction: column;
            gap: 2px;
            align-items: center;
        }

        .op-btn {
            width: 34px;
            height: 34px;
            border: none;
            background: none;
            border-radius: 50%;
            font-size: 18px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #94a3b8;
            transition: all 0.15s ease;
        }

        .op-btn.text-symbol {
            width: 40px;
            font-size: 11px;
            font-weight: 700;
            border-radius: 8px;
            letter-spacing: 0.3px;
        }

        .op-btn:hover {
            background: #eef2f9;
            color: #2563eb;
        }

        .operator-picker.collapsed .op-btn {
            display: none;
        }

        .operator-picker.collapsed .op-btn.active {
            display: flex;
            width: 52px;
            height: 52px;
            font-size: 30px;
            color: #2563eb;
            background: #eef2f9;
        }

        .operator-picker.collapsed .op-btn.active.text-symbol {
            width: 64px;
            font-size: 15px;
            border-radius: 10px;
        }

        .op-btn.wide-symbol {
            width: auto;
            height: 26px;
            padding: 0 10px;
            font-size: 10px;
            font-weight: 700;
            border-radius: 8px;
            letter-spacing: 0.2px;
            white-space: nowrap;
        }

        .operator-picker.collapsed .op-btn.active.wide-symbol {
            width: auto;
            height: 34px;
            padding: 0 14px;
            font-size: 12px;
            border-radius: 10px;
        }

        /* Live-Klammern in der Eingabe-Formel */
        .live-paren {
            font-size: 40px;
            font-weight: 300;
            color: #1e293b;
            align-self: center;
            line-height: 1;
            user-select: none;
        }

        /* Unsichtbarer Platzhalter am Zeilenanfang, damit der Add-Button am Ende die
           Formel (Operanden + Operatoren) nicht optisch nach links verschiebt */
        .formula-row-spacer {
            width: 22px;
            height: 22px;
            flex-shrink: 0;
            visibility: hidden;
        }

        /* Add term button - bewusst klein & unauffällig, damit es nicht mit dem + in der Formel verwechselt wird */
        .add-term-btn {
            width: 22px;
            height: 22px;
            border: 1px dashed #cbd5e1;
            background: none;
            border-radius: 50%;
            font-size: 12px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #cbd5e1;
            transition: all 0.2s ease;
            font-weight: 400;
            align-self: center;
            flex-shrink: 0;
        }

        .add-term-btn:hover {
            background: #eef2f9;
            border-color: #94a3b8;
            color: #64748b;
        }

        .add-term-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .add-term-btn:disabled:hover {
            transform: none;
            background: #eef2f9;
        }

        /* Equals + result inline */
        .equals-sign {
            font-size: 28px;
            color: #64748b;
            font-weight: 300;
        }

        .result-inline {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            min-width: 90px;
        }

        .result-inline .numerator,
        .result-inline .denominator {
            font-size: 34px;
            font-weight: 700;
            color: #2563eb;
            font-family: 'Courier New', monospace;
        }

        .result-inline .fraction-bar {
            background: #2563eb;
        }

        .compare-text {
            font-size: 22px;
            font-weight: 600;
            color: #2563eb;
            text-align: center;
        }

        .decimal-main {
            font-size: 34px;
            font-weight: 700;
            color: #2563eb;
            font-family: 'Courier New', monospace;
        }

        /* Periode bei sich wiederholenden Dezimalzahlen (z.B. 0,3 mit Überstrich) */
        .periodic {
            text-decoration: overline;
            text-decoration-thickness: 2px;
        }

        /* Action row */
        .action-row {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin: 14px 0 8px;
            align-items: center;
        }


        .reset-row {
            display: flex;
            justify-content: center;
            margin-top: 28px;
        }

        .btn-calc {
            padding: 10px 28px;
            border: none;
            border-radius: 24px;
            background: #2563eb;
            color: white;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-calc:hover {
            background: #1e40af;
            box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
        }

        .btn-reset-minimal {
            height: 38px;
            padding: 0 16px;
            border: none;
            background: #f1f5f9;
            border-radius: 20px;
            color: #94a3b8;
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: all 0.2s ease;
        }

        .btn-reset-minimal:hover {
            background: #e2e8f0;
            color: #475569;
        }

        .btn-reset-minimal svg {
            width: 15px;
            height: 15px;
        }

        /* Nach Berechnen: Berechnen-Button verschwindet, Reset wird dezent rot */
        .btn-calc.is-hidden {
            display: none;
        }

        .btn-reset-minimal.is-active {
            background: #e2e8f0;
            color: #475569;
        }

        .btn-reset-minimal.is-active:hover {
            background: #cbd5e1;
            color: #334155;
        }

        /* Examples */
        .examples-row {
            display: flex;
            justify-content: center;
            gap: 22px;
            flex-wrap: wrap;
            margin-top: 14px;
            padding-top: 12px;
            border-top: 1px solid #e2e8f0;
            transition: opacity 0.2s ease;
        }

        .examples-row.is-hidden {
            display: none;
        }

        .example-link {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            cursor: pointer;
            background: none;
            border: none;
            transition: color 0.15s ease;
        }

        .example-link-label {
            font-size: 10px;
            color: #cbd5e1;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 600;
        }

        .example-link-formula {
            font-size: 13px;
            color: #94a3b8;
            font-family: 'Courier New', monospace;
        }

        .example-link:hover .example-link-label,
        .example-link:hover .example-link-formula {
            color: #2563eb;
        }

        /* Result section */
        .result-section {
            display: none;
            margin-top: 50px;
            animation: fadeIn 0.3s ease;
        }

        .result-section.show {
            display: block;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(8px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .result-main-display {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            flex-wrap: wrap;
        }

        /* Info-Panel: gemeinsames Design für Hilfswerte, Weitere Darstellungen & Rechenweg */
        .info-panel {
            margin-top: 24px;
            padding: 22px 24px;
            background: #ffffff;
            border-radius: 3px;
            border: 1px solid #e8edf3;
        }

        .info-panel-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            cursor: pointer;
            user-select: none;
        }

        .info-panel-title {
            font-size: 14px;
            color: #475569;
            text-transform: uppercase;
            font-weight: 700;
            letter-spacing: 0.6px;
        }

        .info-panel-chevron {
            width: 17px;
            height: 17px;
            color: #94a3b8;
            flex-shrink: 0;
            transition: transform 0.2s ease;
        }

        .info-panel.collapsed .info-panel-chevron {
            transform: rotate(-90deg);
        }

        .info-panel-body {
            margin-top: 20px;
        }

        .info-panel.collapsed .info-panel-body {
            display: none;
        }

        .detail-cards {
            display: flex;
            gap: 44px;
            flex-wrap: wrap;
            justify-content: center;
            align-items: flex-start;
        }

        .detail-card {
            text-align: center;
        }

        .detail-card-label {
            font-size: 11px;
            color: #94a3b8;
            text-transform: uppercase;
            letter-spacing: 0.4px;
            margin-bottom: 8px;
            font-weight: 600;
        }

        .detail-card-sublabel {
            text-transform: none;
            font-weight: 400;
            letter-spacing: 0;
            color: #94a3b8;
        }

        .detail-card-value {
            font-size: 19px;
            font-weight: 600;
            color: #334155;
            font-family: 'Courier New', monospace;
        }

        .detail-card-value .detail-card-value-sub {
            display: block;
            font-size: 11px;
            font-weight: 400;
            color: #94a3b8;
            margin-top: 3px;
            font-family: 'Roboto', -apple-system, sans-serif;
        }

        .detail-card.accent .detail-card-value {
            color: #2563eb;
        }

        .detail-card.is-hidden {
            display: none;
        }

        .rechenweg-steps {
            display: flex;
            flex-direction: column;
        }

        /* Jeder Schritt: nummerierter Marker links + Inhalt rechts, mit Verbindungslinie */
        .rechenweg-step {
            display: flex;
            gap: 14px;
            text-align: left;
            padding-bottom: 22px;
        }

        .step-marker {
            display: flex;
            flex-direction: column;
            align-items: center;
            flex-shrink: 0;
        }

        .step-number {
            width: 29px;
            height: 29px;
            border-radius: 50%;
            background: #2563eb;
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            font-weight: 700;
            flex-shrink: 0;
        }

        .step-connector {
            width: 2px;
            flex: 1;
            background: #dbeafe;
            margin-top: 6px;
            min-height: 20px;
        }

        .rechenweg-step:last-child {
            padding-bottom: 0;
        }

        .rechenweg-step:last-child .step-connector {
            display: none;
        }

        .step-body {
            flex: 1;
            padding-top: 2px;
        }

        .step-label {
            font-size: 14px;
            color: #64748b;
            letter-spacing: 0.2px;
            margin-bottom: 13px;
            font-weight: 500;
        }

        .math-line {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            background: #f3f7fa;
            border: 1px solid #e8edf3;
            border-radius: 8px;
            padding: 12px 14px;
            margin-bottom: 8px;
        }

        .math-line:last-child {
            margin-bottom: 0;
        }

        /* Zeile mit dem gekürzten Endergebnis eines Schritts optisch etwas hervorheben */
        .math-line.result-line {
            background: #f0fdf4;
            border-color: #d1fae5;
        }

        .fraction-wrap {
            display: flex;
            align-items: center;
            gap: 2px;
        }

        .paren {
            font-size: 26px;
            font-weight: 300;
            color: #475569;
        }

        .fraction {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 2px;
        }

        .fraction-num,
        .fraction-denom {
            font-size: 17px;
            font-weight: 600;
            color: #475569;
            min-width: 32px;
            text-align: center;
            font-family: 'Courier New', monospace;
        }

        .fraction-line {
            width: 40px;
            height: 1.5px;
            background: #475569;
        }

        .operator-sym {
            font-size: 15px;
            font-weight: 600;
            color: #334155;
            min-width: 22px;
            text-align: center;
        }

        .plain-number {
            font-size: 17px;
            font-weight: 600;
            color: #475569;
            font-family: 'Courier New', monospace;
        }

        /* Hamburger statt Textlinks in der Navi – eigene, größere Breakpoint-Grenze,
           damit die Links nie zweizeilig umbrechen, bevor auf das Menü umgeschaltet wird */
        @media (max-width: 900px) {
            .nav-toggle {
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .site-nav {
                display: none;
                position: absolute;
                top: 100%;
                left: 0;
                right: 0;
                z-index: 100;
                flex-direction: column;
                gap: 0;
                background: #2563eb;
                padding: 4px 20px 12px;
                box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
            }

            .site-nav.open {
                display: flex;
            }

            .site-nav a {
                padding: 12px 0;
                font-size: 15px;
                border-top: 1px solid rgba(255, 255, 255, 0.15);
            }

            .site-nav a:first-child {
                border-top: none;
            }
        }

        @media (max-width: 600px) {
            .main {
                padding: 100px 20px 100px;
            }

            header {
                padding: 15px 15px 15px;
            }

            header h1 {
                font-size: 22px;
                line-height: 1.2;
            }

            header p {
                font-size: 13px;
                line-height: 1.3;
            }

            .seo-content-inner {
                padding: 32px 24px 48px;
            }

            .seo-content h2 {
                font-size: 20px;
            }

            .seo-content h3 {
                font-size: 17px;
            }

            .seo-content p,
            .faq-answer p,
            .seo-content ol.step-list li {
                font-size: 14px;
            }

            .info-panel {
                padding: 16px 16px;
            }

            .operand input {
                width: 65px;
                font-size: 26px;
            }

            .operand.whole-mode .num-input {
                width: 90px;
            }

            .fraction-bar {
                width: 50px;
            }

            .operand-main,
            .fraction-part {
                min-height: 100px;
            }

            .formula-row {
                gap: 10px;
            }

            .op-btn {
                width: 36px;
                height: 36px;
                font-size: 18px;
            }

            .operator-picker.collapsed .op-btn.active {
                width: 44px;
                height: 44px;
                font-size: 24px;
            }

            .add-term-btn {
                width: 20px;
                height: 20px;
                font-size: 11px;
            }

            .formula-row-spacer {
                width: 20px;
                height: 20px;
            }
        }
