/* Konzertanfrage – responsives, bibliotheksfreies Layout */
:root{color-scheme:light;--ink:#182a38;--surface:#fff;--accent:#126a9b;--line:#d7e2e8;--bg:#edf3f6}
*{box-sizing:border-box}html{font-family:system-ui,-apple-system,Segoe UI,Arial,sans-serif;font-size:16px}body{margin:0!important;background:var(--bg)!important;color:var(--ink);line-height:1.55}
body>table{margin:28px auto 18px!important;width:min(100% - 28px,1100px)!important;border-collapse:separate;border-spacing:0;overflow:hidden;border-radius:14px;background:var(--surface);box-shadow:0 12px 38px #1535461c}
body>table>tbody>tr>td,body>table>tr>td{max-width:100%}body table{max-width:100%;}body>table>tbody>tr>td>table{width:100%!important}td[bgcolor='#2d92e0'],td[bgcolor="#2d92e0"]{background:var(--surface)!important}
body>table>tbody>tr:first-child>td{background:#172d3c!important;padding:12px!important}body>table>tbody>tr:first-child table{width:100%!important;background-position:center;background-size:cover}body>table>tbody>tr:first-child img{max-width:100%;height:auto}body>table>tbody>tr:first-child img[src*='logo']{max-width:320px}
h2{font-size:clamp(1.35rem,2.8vw,2rem);line-height:1.2;margin:.65em 0;color:#173c54}td{padding:6px 8px;vertical-align:middle}form{margin:0;padding:12px 8px}input,select,textarea,button{font:inherit;max-width:100%}input:not([type=checkbox]):not([type=radio]):not([type=image]):not([type=hidden]):not([type=submit]),select,textarea{background:#fff;border:1px solid #aabcc8;border-radius:7px;padding:9px 11px;min-height:40px;color:#142a38}input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #56a7cd;outline-offset:2px}
input[type=submit],button{background:var(--accent);border:0;border-radius:8px;color:white;cursor:pointer;padding:9px 15px;min-height:40px;font-weight:600}input[type=submit]:hover,button:hover{background:#0b5178}input[type=checkbox]{width:19px;height:19px;accent-color:var(--accent)}a{color:#095d93}a:hover{text-decoration:underline}textarea{min-width:min(100%,350px)}form table{border-collapse:collapse}body>div[align=center],body>div[align='center']{max-width:1100px;margin:15px auto 36px;padding:16px 22px;text-align:center;font-size:.9rem;color:#546674}table[border='1']{border-collapse:collapse;border:1px solid var(--line)}table[border='1'] td{border:1px solid var(--line)}
@media(max-width:760px){body>table{width:calc(100% - 14px)!important;margin:8px auto!important}body>table td{padding:6px!important}body>table>tbody>tr:first-child img[src*='engel'],body>table>tbody>tr:first-child img[src*='teufel']{max-width:42px}form{padding:6px}input,select,textarea{max-width:100%!important}table[width='992'],table[width='980'],table[width='800']{width:100%!important}body>table td>table{width:100%!important}h2{font-size:1.3rem}body{overflow-x:auto}}
@media(prefers-reduced-motion:no-preference){input[type=submit],button{transition:background .15s ease}}


/* Login ohne Tabellenlayout: Beschriftung, breites Feld, Aktionsbutton */
.login-form{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin:12px auto 18px;padding:16px;max-width:690px}
.login-form label{white-space:nowrap;font-weight:600}
.login-form input[name="Veranstalter[EMail]"]{flex:1 1 290px;min-width:200px;width:min(100%,430px)}
.login-form input[type=submit]{white-space:nowrap}

/* Registrierungsformular: Fehlerspalte schmal, Hinweistext erst bei Bedarf */
.organizer-form>table{table-layout:auto;width:100%!important}
.organizer-form>table>tbody>tr>td:first-child{width:30%;min-width:145px}
.organizer-form>table>tbody>tr>td:nth-child(2){width:48%}
.organizer-form>table>tbody>tr>td:nth-child(2) input:not([type=submit]){width:min(100%,440px)}
.organizer-form>table>tbody>tr>td:nth-child(3){width:22%;max-width:220px;font-size:.875rem;color:#ad2534;overflow-wrap:anywhere}
.organizer-form>table>tbody>tr>td:nth-child(3):not(:empty){font-weight:550}
@media(max-width:680px){
  .login-form{align-items:stretch;flex-direction:column}
  .login-form input[name="Veranstalter[EMail]"]{flex:auto;width:100%}
  
}

/* Zweispaltiges Formular-Grid: die leere dritte Tabellenspalte entfällt. */
.organizer-grid > table, .venue-grid > table, .festival-grid > table { display:block !important; width:100% !important; border:0 !important; }
.organizer-grid > table > tbody, .venue-grid > table > tbody, .festival-grid > table > tbody { display:block; width:100%; }
.organizer-grid > table > tbody > tr, .venue-grid > table > tbody > tr, .festival-grid > table > tbody > tr {
  display:grid !important; grid-template-columns:minmax(170px, 35%) minmax(0,1fr);
  column-gap:18px; align-items:center; padding:8px 12px;
  border-bottom:1px solid var(--line); background:#fff;
}
.organizer-grid > table > tbody > tr > td, .venue-grid > table > tbody > tr > td, .festival-grid > table > tbody > tr > td {
  display:block; width:auto !important; min-width:0 !important; max-width:none !important;
  border:0 !important; padding:4px 0 !important; overflow-wrap:anywhere;
}
.organizer-grid > table > tbody > tr > td:first-child, .venue-grid > table > tbody > tr > td:first-child, .festival-grid > table > tbody > tr > td:first-child { grid-column:1; }
.organizer-grid > table > tbody > tr > td:nth-child(2), .venue-grid > table > tbody > tr > td:nth-child(2), .festival-grid > table > tbody > tr > td:nth-child(2) { grid-column:2; }
.organizer-grid > table > tbody > tr > td:nth-child(3), .venue-grid > table > tbody > tr > td:nth-child(3), .festival-grid > table > tbody > tr > td:nth-child(3) {
  grid-column:2; color:#a7273f; font-size:.875rem; line-height:1.35;
}
.organizer-grid > table > tbody > tr > td:nth-child(3):empty, .venue-grid > table > tbody > tr > td:nth-child(3):empty, .festival-grid > table > tbody > tr > td:nth-child(3):empty {display:none}
.organizer-grid > table > tbody > tr > td[colspan], .venue-grid > table > tbody > tr > td[colspan], .festival-grid > table > tbody > tr > td[colspan] {grid-column:1/-1 !important}
.organizer-grid > table > tbody > tr > td:nth-child(2) input:not([type=submit]),
.venue-grid > table > tbody > tr > td:nth-child(2) input:not([type=submit]),
.festival-grid > table > tbody > tr > td:nth-child(2) input:not([type=submit]) {width:min(100%,430px);}
.organizer-grid > table > tbody > tr > td:nth-child(2) select,
.venue-grid > table > tbody > tr > td:nth-child(2) select,
.festival-grid > table > tbody > tr > td:nth-child(2) select {width:min(100%,430px)}
.organizer-grid textarea,.venue-grid textarea,.festival-grid textarea {width:min(100%,650px); min-width:0}
@media(max-width:650px){
 .organizer-grid > table > tbody > tr, .venue-grid > table > tbody > tr, .festival-grid > table > tbody > tr {grid-template-columns:minmax(0,1fr); gap:3px;padding:10px}
 .organizer-grid > table > tbody > tr > td, .venue-grid > table > tbody > tr > td, .festival-grid > table > tbody > tr > td {grid-column:1 !important}
}

/* Bühnenmaße mit gleichmäßigem Abstand statt direkt aneinanderliegender Felder */
.venue-grid .stage-inputs, .festival-grid .stage-inputs {
    display:grid !important;
    grid-template-columns:minmax(0,1fr);
    gap:10px;
    justify-items:start;
    align-content:center;
}
.venue-grid .stage-inputs input, .festival-grid .stage-inputs input {
    display:block; margin:0; width:min(100%,430px);
}
