/* oscw.oscvev.de – Ostsächsischer Chorwettbewerb 2027, Entwurf A
   Systemschriften, kein Framework. Gelb nur als Fläche, nie als Textfarbe. */

:root {
  --gruen: #2e6b45;
  --gruen-tief: #1e4a2f;
  --gelb: #dfc46a;
  --tinte: #1c1c1c;
  --grau: #5b5f5c;
  --hell: #f1f5f1;
  --linie: #cfd8d1;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --breite: 68rem;
}

* { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--schrift); color: var(--tinte); background: #fff; line-height: 1.55; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gruen); text-underline-offset: .15em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--tinte); outline-offset: 3px;
}
h1, h2, h3 { line-height: 1.15; color: var(--gruen-tief); }
h2 { font-size: 1.5rem; margin: 0 0 .6em; }
h3 { font-size: 1.2rem; margin: 1.2em 0 .4em; }
.invisible { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.oscw-sprung { position: absolute; left: -999px; top: 0; background: #fff; padding: .5em 1em; z-index: 10; }
.oscw-sprung:focus { left: 1rem; }

/* Knopf */
.oscw-knopf, .oscw-haupt button[type="submit"] {
  display: inline-block; min-height: 48px; padding: .7em 1.4em;
  background: var(--gruen); color: #fff; border: 0; border-radius: 4px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.oscw-knopf:hover, .oscw-haupt button[type="submit"]:hover { background: var(--gruen-tief); }

/* Kopf */
.oscw-kopf-bild img { width: 100%; height: clamp(20rem, 72vh, 52rem); object-fit: cover; object-position: 50% 35%; }
.oscw-kopf-text {
  position: relative; max-width: var(--breite); width: calc(100% - 2.5rem);
  margin: -4.5rem auto 0; padding: 1.6rem 1.25rem 1rem;
  background: #fff; border-top: 8px solid var(--gelb);
}
.oscw-logo { width: 96px; float: right; margin: 0 0 1rem 1rem; }
.oscw-projekt { margin: 0; color: var(--grau); }
.oscw-kopf h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); margin: .15em 0 .2em; letter-spacing: -.02em; }
.oscw-titel { font-size: 1.6rem; font-weight: 700; margin: .2em 0 .1em; line-height: 1.15; }
.oscw-titel a { color: var(--gruen-tief); text-decoration: none; }
.oscw-unter { font-size: 1.3rem; margin: 0; font-weight: 600; }
.oscw-wann { margin: .4em 0 1.2em; }
.oscw-kopf--klein .oscw-kopf-text { margin-top: 0; }
.oscw-kopf--klein .oscw-logo { width: 72px; }
.oscw-kopf--klein .oscw-unter { font-size: 1.05rem; }

/* Navigation */
.oscw-nav { max-width: var(--breite); margin: 0 auto; padding: 0 1.25rem; border-bottom: 1px solid var(--linie); }
.oscw-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; }
.oscw-nav a, .oscw-nav strong { display: inline-block; padding: .6em 0; text-decoration: none; font-weight: 600; }
.oscw-nav .active { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--gelb); }

/* Hauptbereich */
.oscw-haupt { max-width: var(--breite); margin: 0 auto; padding: 3rem 1.25rem; display: grid; gap: 4.5rem; overflow-wrap: break-word; }
.oscw-haupt > *, .oscw-haupt .mod_article > * { max-width: 42rem; min-width: 0; }
.oscw-haupt .mod_article { display: grid; gap: 4.5rem; max-width: none; }

/* Text mit Foto daneben (Contao: media media--right) */
.oscw-haupt .media--right { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "kopf bild" "text bild"; grid-template-rows: auto 1fr; column-gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.media--right > h2 { grid-area: kopf; }
.media--right > figure { grid-area: bild; margin: 0; }
.media--right > .rte { grid-area: text; }
.media--right figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: 1.2rem 1.2rem 0 var(--gelb); }
/* Spiegelbild: Foto links, Querformat (Contao: media media--left) */
.oscw-haupt .media--left { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "bild kopf" "bild text"; grid-template-rows: auto 1fr; column-gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.media--left > h2 { grid-area: kopf; }
.media--left > figure { grid-area: bild; margin: 0; }
.media--left > .rte { grid-area: text; }
.media--left figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; box-shadow: -1.2rem 1.2rem 0 var(--gelb); }
.media figcaption, .oscw-band figcaption { font-size: .85rem; color: var(--grau); margin-top: 1.6rem; }

/* Foto über die volle Breite */
.oscw-haupt .oscw-band { max-width: none; margin-inline: calc(50% - 50vw); }
.oscw-band figure { margin: 0; }
.oscw-band img { width: 100%; height: clamp(16rem, 42vw, 34rem); object-fit: cover; }
.oscw-band figcaption { max-width: var(--breite); margin: .6rem auto 0; padding: 0 1.25rem; }
.oscw-haupt p { max-width: 36em; }
.oscw-spaeter { color: var(--grau); font-style: italic; }

/* Fünf Sätze auf fünf Notenlinien */
.oscw-haupt .oscw-saetze { background: var(--gruen); color: #fff; max-width: none; margin-inline: calc(50% - 50vw); padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem; }
.oscw-saetze .rte { max-width: var(--breite); margin: 0 auto; }
.oscw-saetze ol, .oscw-saetze ul { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.oscw-saetze li { border-bottom: 2px solid rgba(255, 255, 255, .85); padding: .8rem 0 .3rem; font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 600; line-height: 1.3; }

.oscw-haupt .oscw-jury { max-width: none; }
.oscw-jury .rte { columns: 2 22rem; column-gap: 3rem; }
.oscw-jury p { margin: 0 0 1.2em; break-inside: avoid; }
.oscw-jury p strong:first-child { font-size: 1.1rem; color: var(--gruen-tief); }
.oscw-jury p:last-child { column-span: all; color: var(--grau); }

.oscw-fristen table { border-collapse: collapse; width: 100%; margin: 0 0 1em; }
.oscw-fristen td { padding: .55em .4em; border-bottom: 1px solid var(--linie); vertical-align: top; }
.oscw-fristen td:last-child { white-space: nowrap; text-align: right; font-weight: 600; }

/* Formular (Contao-Formulargenerator) */
.oscw-haupt .oscw-vormerken { background: var(--hell); padding: 1.6rem 1.4rem; max-width: 44rem; border-left: 8px solid var(--gruen); }
.oscw-haupt form .formbody { display: grid; gap: .25rem; max-width: 28rem; }
.oscw-haupt form .widget { display: grid; gap: .25rem; margin-top: .7rem; }
.oscw-haupt form label { font-weight: 600; }
.oscw-haupt form label span.mandatory { color: var(--grau); }
.oscw-haupt form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), .oscw-haupt form textarea, .oscw-haupt form select {
  font: inherit; padding: .6em .7em; min-height: 48px; width: 100%;
  border: 2px solid var(--grau); border-radius: 4px; background: #fff;
}
.oscw-haupt form .error { color: #a1271b; font-weight: 600; }
.oscw-haupt form input.error { border-color: #a1271b; }
.oscw-haupt form .widget-submit { margin-top: 1rem; }
.oscw-hinweis { font-size: .9rem; color: var(--grau); }

.oscw-haupt .oscw-kontakt { background: var(--hell); border-left: 8px solid var(--gelb); padding: 1.6rem 1.4rem; }

/* Was haben Sie davon? – drei Blickwinkel (Contao: Elementgruppe mit drei Textelementen) */
.oscw-haupt .oscw-davon { max-width: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2.2rem clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.oscw-davon > h2 { grid-column: 1 / -1; margin-bottom: -.8rem; }
.oscw-davon > .content-text { display: flex; flex-direction: column; min-width: 0; }
.oscw-davon figure { order: -1; margin: 0 0 1rem; }
.oscw-davon figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.oscw-davon figcaption { font-size: .75rem; color: var(--grau); margin-top: .35rem; }
.oscw-davon h3 { margin: 0; font-size: .95rem; font-weight: 600; color: var(--grau); }
.oscw-davon .oscw-nutzen { margin: .1rem 0 .5rem; font-size: 1.3rem; font-weight: 700; line-height: 1.2; color: var(--gruen-tief); }
.oscw-davon ul { margin: 0; padding: 0; list-style: none; }
.oscw-davon li { padding: .45rem 0 .45rem 1.1rem; border-bottom: 1px solid var(--linie); position: relative; }
.oscw-davon li::before { content: ""; position: absolute; left: 0; top: 1rem; width: .45rem; height: .45rem; background: var(--gelb); }

/* Der Tag in vier Teilen */
.oscw-ablauf { list-style: none; margin: 0 0 1.4rem; padding: 0; }
.oscw-ablauf li { padding: .7rem 0 .7rem 1rem; border-left: 4px solid var(--gelb); margin-bottom: .6rem; }
.oscw-ablauf strong { display: block; font-size: 1.2rem; color: var(--gruen-tief); }
.oscw-merksatz { font-size: 1.3rem; font-weight: 700; color: var(--gruen-tief); line-height: 1.3; }

.oscw-saetze h2 { color: #fff; max-width: 46rem; font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-bottom: .8rem; padding-bottom: .5rem; border-bottom: 6px solid var(--gelb); display: inline-block; }

/* Kosten und Fristen */
.oscw-zeitleiste { list-style: none; margin: 1.6rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; }
.oscw-zeitleiste li { border-top: 6px solid var(--gruen); padding-top: .7rem; }
.oscw-zeitleiste li:first-child { border-top-color: var(--gelb); }
.oscw-zeitleiste b { display: block; font-size: 1.15rem; color: var(--gruen-tief); }
.oscw-fristen details { border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); padding: .3rem 0; margin: 1.2rem 0; }
.oscw-fristen summary { cursor: pointer; font-weight: 600; color: var(--gruen); padding: .6rem 0; min-height: 44px; }
.oscw-fristen details ul { margin: .4rem 0 .8rem; padding-left: 1.2rem; }

/* Fuß */
.oscw-fuss { background: var(--hell); border-top: 6px solid var(--gelb); margin-top: 4rem; font-size: .9rem; }
.oscw-fuss-innen { max-width: var(--breite); margin: 0 auto; padding: 2rem 1.25rem; }
.oscw-fuss p { margin: .3rem 0; }
.oscw-scv { width: 240px; margin: .8rem 0; }

@media (max-width: 48rem) {
  .oscw-haupt .media--right { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kopf" "text" "bild"; }
  .media--right figure { margin-top: 1.4rem; }
  .media--right figure img { aspect-ratio: 4 / 3; box-shadow: .7rem .7rem 0 var(--gelb); }
  .oscw-haupt .media--left { grid-template-columns: minmax(0, 1fr); grid-template-areas: "kopf" "text" "bild"; }
  .media--left figure { margin-top: 1.4rem; }
  .media--left figure img { box-shadow: -.7rem .7rem 0 var(--gelb); }
}

@media (max-width: 40rem) {
  .oscw-kopf-bild img { height: clamp(12rem, 34vh, 18rem); }
  .oscw-projekt { font-size: .85rem; }
  .oscw-unter { font-size: 1.1rem; }
  .oscw-kopf-text { margin-top: -2rem; width: calc(100% - 1rem); }
  .oscw-logo { width: 72px; }
}

@media print {
  .oscw-nav, .oscw-knopf, .oscw-sprung, .oscw-haupt form, .oscw-kopf-bild, .oscw-band, .media figure { display: none !important; }
  .oscw-haupt .oscw-saetze { background: none; color: inherit; margin: 0; padding: 0; }
  .oscw-saetze li { border-color: #000; }
  .oscw-haupt .media--right, .oscw-haupt .media--left { display: block; }
  .oscw-davon figure { display: none; }
  .oscw-haupt .oscw-davon { display: block; }
  .oscw-saetze h2 { color: inherit; border-color: #000; }
  .oscw-fristen details > * { display: block; }
  body { font-size: 11pt; }
  .oscw-kopf-text { margin: 0; border-top: 0; width: 100%; }
  a { color: inherit; text-decoration: none; }
  .oscw-fuss { border-top: 2px solid #000; background: none; }
}
