/*
 * ZWAYT – einheitliche Oberfläche für Konto-, Formular-, Checkout- und Abo-Seiten (F-54, 03.12.2026)
 * Farben/Formen wie auf der restlichen Website: Grün #52bfa0, Überschriften #9cab00,
 * Buttons mit 3px Radius, Roboto Condensed / Inter.
 */
:root {
    --zw-green: #52bfa0;
    --zw-green-dark: #3fa588;
    --zw-olive: #9cab00;
    --zw-text: #212529;
    --zw-muted: #6c757d;
    --zw-border: #e3e6e8;
    --zw-bg-soft: #f4faf8;
    --zw-danger: #c0392b;
}

.zw-account { max-width: 880px; margin: 0 auto; }
.zw-account h1 { color: var(--zw-olive); margin-bottom: 1.5rem; }
.zw-card { background: #fff; border: 1px solid var(--zw-border); border-radius: 3px; padding: 28px 30px; margin-bottom: 28px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.zw-card h2 { font-size: 1.4rem; margin-bottom: 1rem; color: var(--zw-text); }
.zw-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 24px; margin: 0 0 1.25rem; }
.zw-facts dt { font-weight: 600; }
.zw-facts dd { margin: 0; }
.zw-note { background: var(--zw-bg-soft); border-left: 4px solid var(--zw-green); padding: 12px 16px; margin: 1rem 0; }
.zw-note.zw-warn { background: #fdf3f2; border-left-color: var(--zw-danger); }
.zw-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 1rem; }
.zw-btn { display: inline-block; border: 1px solid transparent; border-radius: 3px; padding: 12px 28px; font-weight: 400; line-height: 1.3; cursor: pointer; text-decoration: none !important; transition: background .2s, color .2s; }
.zw-btn-primary { background: var(--zw-green); color: #fff !important; }
.zw-btn-primary:hover { background: var(--zw-green-dark); }
.zw-btn-outline { background: #fff; color: var(--zw-text) !important; border-color: var(--zw-text); }
.zw-btn-outline:hover { background: var(--zw-text); color: #fff !important; }
.zw-btn-danger { background: var(--zw-danger); color: #fff !important; }
.zw-btn:disabled { opacity: .6; cursor: wait; }
.zw-link { background: none; border: 0; padding: 0; color: var(--zw-muted); text-decoration: underline; cursor: pointer; font-size: .9rem; }
.zw-confirm { display: none; margin-top: 1rem; }
.zw-msg { margin-top: 1rem; font-weight: 600; }
.zw-msg:empty { display: none; }
.zw-msg.ok { color: #2e7d5b; }
.zw-msg.err { color: var(--zw-danger); }
.zw-table { width: 100%; border-collapse: collapse; }
.zw-table th, .zw-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid #eee; vertical-align: top; }
.zw-table th { font-weight: 600; font-size: .9rem; color: #555; }
.zw-table a { color: var(--zw-green-dark); font-weight: 600; }

/* Bestehende Bootstrap-Formulare/Karten auf Konto- und Formularseiten an das Seitendesign angleichen */
body.zw-ui .card { border: 1px solid var(--zw-border); border-radius: 3px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
body.zw-ui .card-title, body.zw-ui main h1, body.zw-ui main h2.card-title { color: var(--zw-olive); }
body.zw-ui .form-control, body.zw-ui .form-select,
body.zw-ui main input[type="text"], body.zw-ui main input[type="email"], body.zw-ui main input[type="url"],
body.zw-ui main input[type="tel"], body.zw-ui main input[type="password"], body.zw-ui main input[type="number"],
body.zw-ui main textarea, body.zw-ui main select { border: 1px solid #cfd6da; border-radius: 3px; padding: 10px 12px; box-shadow: none; }
body.zw-ui .form-control:focus, body.zw-ui main input:focus, body.zw-ui main textarea:focus, body.zw-ui main select:focus { border-color: var(--zw-green); box-shadow: 0 0 0 3px rgba(82,191,160,.2); outline: none; }
body.zw-ui main label, body.zw-ui .form-label { font-weight: 600; margin-bottom: 4px; }
body.zw-ui main .btn, body.zw-ui main button[type="submit"], body.zw-ui main input[type="submit"] { border-radius: 3px; padding: 12px 28px; }
body.zw-ui main .btn-primary, body.zw-ui main .btn-success, body.zw-ui main button[type="submit"], body.zw-ui main input[type="submit"], body.zw-ui main .new-green-bg { background: var(--zw-green) !important; border-color: var(--zw-green) !important; color: #fff !important; }
body.zw-ui main .btn-primary:hover, body.zw-ui main .btn-success:hover, body.zw-ui main button[type="submit"]:hover, body.zw-ui main input[type="submit"]:hover { background: var(--zw-green-dark) !important; }
body.zw-ui main .rounded-0 { border-radius: 3px !important; }
body.zw-ui main .alert-success { background: var(--zw-bg-soft); border-color: var(--zw-green); color: #1f5e4b; }

@media (max-width: 600px) {
    .zw-card { padding: 20px 16px; }
    .zw-facts { grid-template-columns: 1fr; gap: 2px; }
    .zw-facts dd { margin-bottom: 8px; }
    .zw-table thead { display: none; }
    .zw-table tr { display: block; border-bottom: 1px solid #eee; padding: 8px 0; }
    .zw-table td { display: block; border: 0; padding: 2px 0; }
}

/* Produktübersicht [zwayt_produkte] (F-44) */
.zw-products { margin: 1rem 0 2rem; }
.zw-product-group { margin-bottom: 2.5rem; }
.zw-product-group h2 { color: var(--zw-olive); margin-bottom: 1rem; }
.zw-product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.zw-product-card { background: #fff; border: 1px solid var(--zw-border); border-radius: 3px; padding: 24px 20px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 2px 10px rgba(0,0,0,.04); }
.zw-product-card.is-highlight { border-color: var(--zw-green); box-shadow: 0 4px 18px rgba(82,191,160,.25); }
.zw-product-card h3 { font-size: 1.1rem; margin: 0 0 6px; }
.zw-product-term { font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; color: var(--zw-green-dark); font-weight: 600; }
.zw-product-price { font-size: 2rem; font-weight: 600; color: var(--zw-text); line-height: 1.1; }
.zw-product-sub { font-size: .85rem; color: var(--zw-muted); }
.zw-product-desc { font-size: .95rem; margin: 8px 0 0; }
.zw-product-card .zw-btn { margin-top: auto; text-align: center; }
.zw-product-card .zw-product-desc + .zw-btn, .zw-product-card .zw-product-sub + .zw-btn { margin-top: 16px; }
.zw-checkout-summary { margin: 0 0 1.5rem; }
.zw-feature-list { columns: 2 260px; padding-left: 0; list-style: none; margin: 0; }
.zw-feature-list li { break-inside: avoid; padding: 4px 0 4px 26px; position: relative; }
.zw-feature-list li::before { content: "✔"; position: absolute; left: 0; color: var(--zw-green); }

/* F-59 (03.12.2026): Startseite mobil – der Hero-Bereich hatte eine feste Höhe von 420px, der Inhalt lief nach
   oben unter das Logo. Auf kleinen Bildschirmen wächst der Bereich jetzt mit (ID = Breakdance-Startseite 243430). */
@media (max-width: 767px) {
    .bde-section-243430-100,
    .bde-section-243430-100 > .section-container { height: auto !important; min-height: 420px; }
}

/* F-46: eine Upload-Bedienung statt zwei */
input[type="file"].zw-file-native { position: absolute !important; width: 1px; height: 1px; opacity: 0; overflow: hidden; clip: rect(0 0 0 0); }
label.zw-file-button { display: inline-block; cursor: pointer; border: 1px solid var(--zw-green); color: var(--zw-green-dark); background: #fff; border-radius: 3px; padding: 10px 22px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
label.zw-file-button:hover, label.zw-file-button.has-file { background: var(--zw-bg-soft); }
input[type="file"].zw-file-native:focus + label.zw-file-button { outline: 2px solid var(--zw-green); outline-offset: 2px; }
/* Profil-Formulare: Felder in voller Breite der Spalte */
body.zw-ui .profil-content-column input[type="text"], body.zw-ui .profil-content-column input[type="email"], body.zw-ui .profil-content-column textarea { width: 100%; max-width: 100%; }
body.zw-ui .profil-content-column textarea { min-height: 180px; }
body.zw-ui main h1, body.zw-ui article h1 { color: var(--zw-olive); }
