/* rechtschaffen.info – Farben und Schriften nach Website0 (Elementor-Kit #10, global.css) */

@font-face { font-family: "Fjalla One"; font-weight: 400; font-display: swap; src: url("fonts/fjalla-one-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 400; font-display: swap; src: url("fonts/open-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 600; font-display: swap; src: url("fonts/open-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Open Sans"; font-weight: 700; font-display: swap; src: url("fonts/open-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --gold: #C29032;
  --gold-hell: #d9a94f;
  --grund: #262626;
  --grund-tief: #000000;
  --flaeche: #303030;
  --text: #D0D0D0;
  --text-hell: #FFFFFF;
  --grau: #898989;
  --linie: #54595f;
  --breite: 72rem;
  --ueberschrift: "Fjalla One", "Arial Narrow", sans-serif;
  --fliesstext: "Open Sans", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--fliesstext);
  font-size: 1rem;
  line-height: 1.7;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold-hell); text-underline-offset: .2em; }
a:hover, a:focus-visible { color: var(--text-hell); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

h1, h2, h3 {
  font-family: var(--ueberschrift);
  font-weight: 400;
  color: var(--gold);
  line-height: 1.25;
  letter-spacing: .02em;
}
h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 2.5rem 0 .75rem; }
h3 { font-size: 1.3rem; margin: 1.75rem 0 .5rem; }
p, ul, ol { margin: 0 0 1rem; }

.sprung { position: absolute; left: -999px; }
.sprung:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--gold); color: #000; padding: .5rem 1rem; }

.entwurf-hinweis {
  background: repeating-linear-gradient(45deg, #D26F6F, #D26F6F 12px, #b85a5a 12px, #b85a5a 24px);
  color: #fff; font-weight: 700; text-align: center; padding: .6rem 1rem;
}
.marke { font-size: .7em; background: #D26F6F; color: #fff; padding: .05em .4em; border-radius: 3px; vertical-align: middle; }

/* Kopf */
.kopf { background: var(--grund-tief); border-bottom: 3px solid var(--gold); position: sticky; top: 0; z-index: 5; }
.kopf-innen { max-width: var(--breite); margin: 0 auto; padding: .6rem 1rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.marke-logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--text-hell); margin-right: auto; }
.marke-logo strong { display: block; font-family: var(--ueberschrift); font-weight: 400; font-size: 1.25rem; letter-spacing: .03em; }
.marke-logo small { display: block; color: var(--gold); font-size: .85rem; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
nav a { color: var(--text-hell); text-decoration: none; font-family: var(--ueberschrift); letter-spacing: .05em; text-transform: uppercase; font-size: .95rem; padding: .25rem 0; border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current="page"] { color: var(--gold); border-bottom-color: var(--gold); }
.menue-knopf { display: none; background: none; border: 1px solid var(--gold); color: var(--gold); font: inherit; padding: .3rem .8rem; cursor: pointer; }

@media (max-width: 60rem) {
  .menue-knopf { display: block; }
  nav { display: none; width: 100%; }
  nav.offen { display: block; }
  nav ul { flex-direction: column; padding: .5rem 0; }
  nav a { display: block; padding: .5rem 0; }
}

/* Diashow wie Website0: Normal- und Spiegelbild, 1 s Überblendung, langsamer Zoom, Ausblenden beim Scrollen (JS).
   Der Hammer liegt in Bild 1 rechts, in Bild 2 links: Zoom wächst von der Hammerseite weg, damit er nicht angeschnitten wird;
   der Kasten liegt jeweils über dem Mann und wechselt mit dem Bild die Seite. */
.held { --held-h: min(38rem, 75vh); position: relative; overflow: hidden; background: #000; min-height: var(--held-h); display: flex; align-items: flex-end; }
.held-bild { position: absolute; inset: 0; background: center / cover no-repeat; will-change: transform, opacity; }
.held-bild-1 { background-image: url("img/held-1.jpg"); transform-origin: right center; animation: zoom 16s ease-in-out infinite alternate; }
.held-bild-2 { background-image: url("img/held-2.jpg"); transform-origin: left center; opacity: 0; animation: wechsel 16s linear infinite, zoom 16s ease-in-out infinite alternate-reverse; }
@media (max-width: 50rem) {
  .held-bild-1 { background-image: url("img/held-1-klein.jpg"); }
  .held-bild-2 { background-image: url("img/held-2-klein.jpg"); }
}
@keyframes zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
@keyframes wechsel { 0%, 44% { opacity: 0; } 50%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes seite { 0%, 47% { justify-content: flex-start; } 47.01%, 97% { justify-content: flex-end; } 97.01%, 100% { justify-content: flex-start; } }
@keyframes kastenblende { 0% { opacity: 0; } 3%, 42% { opacity: 1; } 45%, 49% { opacity: 0; } 52%, 92% { opacity: 1; } 95%, 100% { opacity: 0; } }
.held-innen { position: relative; max-width: var(--breite); margin: 0 auto; padding: 3rem 1rem 0; width: 100%; display: flex; justify-content: flex-start; animation: seite 16s linear infinite; }
@media (prefers-reduced-motion: reduce) { .held-bild-1, .held-bild-2, .held-innen, .held-text { animation: none; } }
/* Kasten im Startbild: 80 % der ursprünglichen Maße; Breite nach Inhalt, rechter Rand = linker Rand */
.held-text { background: rgba(0,0,0,.65); border-left: 4px solid var(--gold); padding: 1.2rem 1.4rem; display: grid; grid-template-columns: auto auto; column-gap: 1.12rem; align-items: center; width: fit-content; max-width: 100%; animation: kastenblende 16s linear infinite; }
/* Oberkante des Kastens = Oberkante des Hammerkopfs (bei 55,9 % der Bildhöhe; Bild 2:1, „cover“ zentriert):
   Kastenhöhe = Bildbereichhöhe/2 − 0,059 × gerenderte Bildhöhe */
.held-text { min-height: calc(var(--held-h) / 2 - 0.059 * max(var(--held-h), 50vw)); align-content: center; }
.held-wappen { grid-row: span 3; width: clamp(3.2rem, 7.2vw, 5.2rem); height: auto; }
.held h1 { font-size: clamp(1.76rem, 4vw, 2.72rem); margin-bottom: .2rem; }
.held p { color: var(--text-hell); font-size: .92rem; margin: 0; }
.held .held-knopf { margin-top: .8rem; }
.held .knopf { font-size: .84rem; padding: .44rem 1.12rem; }
/* Handy: Bild oben (Hammer sichtbar), Kasten darunter */
@media (max-width: 40rem) {
  .held { display: block; min-height: 0; }
  .held-bild { inset: 0 0 auto 0; height: 15rem; }
  .held-bild-1 { background-position: 100% center; }
  .held-bild-2 { background-position: 0% center; }
  .held-innen { padding: 15rem 0 0; animation: none; }
  .held-text { animation: none; min-height: 0; width: 100%; border-left: 0; border-top: 3px solid var(--gold); background: #000; }
}

/* Inhalt */
.seite { max-width: var(--breite); margin: 0 auto; padding: 3rem 1rem 4rem; }
.schmal { max-width: 48rem; }
.band { background: var(--grund-tief); }
.band .seite { padding-top: 2.5rem; padding-bottom: 3rem; }
.einleitung { font-size: 1.1rem; color: var(--text-hell); }

.zwei-spalten { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
@media (max-width: 50rem) { .zwei-spalten { grid-template-columns: 1fr; } }
.portrait { border-bottom: 3px solid var(--gold); background: #000; }

.kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1.25rem; padding: 0; list-style: none; }
.kachel { background: var(--flaeche); border-top: 3px solid var(--gold); padding: 1.25rem 1.4rem; }
.kachel h3 { margin-top: 0; }
.kachel a { text-decoration: none; }
.kachel p:last-child { margin-bottom: 0; }

/* Arbeitsfelder als Kästen wie Website0 – alles auf einen Blick */
.felder { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.feld { background: var(--flaeche); border-top: 3px solid var(--gold); padding: 1.25rem 1.4rem; scroll-margin-top: 6rem; }
.feld h2 { margin: 0 0 .6rem; font-size: 1.35rem; }
#teil-1, #teil-2, #inhalt { scroll-margin-top: 6rem; }
.pfeil { text-align: right; margin: 1rem 0 0; }
.kopfzeile { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.kopfzeile h1 { margin-bottom: 0; }
.kopfzeile .pfeil { margin: 0; }
.kopfzeile + .einleitung { margin-top: 1rem; }
.pfeil a { display: inline-flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border: 2px solid var(--gold); border-radius: 50%; color: var(--gold); font-size: 1.6rem; line-height: 1; text-decoration: none; }
.pfeil a:hover, .pfeil a:focus-visible { background: var(--gold); color: #000; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.feld p { font-size: .95rem; line-height: 1.6; }
.feld p:last-child { margin-bottom: 0; }

.beitragsliste { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.beitragsliste li { border-bottom: 1px solid var(--linie); }
.beitragsliste a { display: flex; gap: 1.25rem; padding: .8rem 0; text-decoration: none; color: var(--text-hell); }
.beitragsliste a:hover .titel { color: var(--gold); }
.beitragsliste .datum { color: var(--grau); min-width: 6.5rem; font-variant-numeric: tabular-nums; }
@media (max-width: 30rem) { .beitragsliste a { flex-direction: column; gap: 0; } }

.datum { color: var(--grau); }
.zurueck { margin-bottom: 1.5rem; }
.stand-hinweis { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--linie); color: var(--grau); font-size: .9rem; }

.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 1rem; list-style: none; padding: 0; }
.logos li { background: #fff; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; padding: .75rem; }
.logos img { max-height: 100%; object-fit: contain; }
.logos a:focus-visible { outline-offset: 4px; }

.spalten-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr)); gap: 2.5rem; }
.spalten-2 h2 { margin-top: 1.5rem; }
/* Spalten gleich hoch: Einträge teilen sich die Höhe der längeren Spalte */
.spalten-2 > section { display: flex; flex-direction: column; }
.spalten-2 .dokumente { flex: 1; display: flex; flex-direction: column; gap: .75rem; margin-bottom: 0; }
.spalten-2 .dokumente li { flex: 1; margin-bottom: 0; }
.mittig { text-align: center; margin-top: 2rem; }
p.info.mittig { margin-top: .75rem; }
p.info { color: var(--grau); font-size: .9rem; }
.dokumente { list-style: none; padding: 0; }
.dokumente li { background: var(--flaeche); padding: 1rem 1.25rem; margin-bottom: .75rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; }
.dokumente li > span { flex: 1 1 12rem; }
.dokumente .knopf { flex: 0 0 auto; white-space: nowrap; }
.dokumente .info { color: var(--grau); font-size: .9rem; }
.knopf { display: inline-block; background: var(--gold); color: #000; text-decoration: none; padding: .45rem 1.1rem; font-weight: 600; }
.knopf:hover, .knopf:focus-visible { background: var(--gold-hell); color: #000; }

.kontaktdaten { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1.5rem; margin: 0 0 1.5rem; }
.kontaktdaten dt { color: var(--grau); }
.kontaktdaten dd { margin: 0; color: var(--text-hell); }

.platzhalter { border: 2px dashed #D26F6F; padding: 1rem 1.25rem; color: #f0b4b4; margin: 1rem 0; }
.recht h2 { font-size: 1.35rem; margin-top: 2rem; }
.recht h3 { font-size: 1.1rem; }

/* Fuß */
.fuss { background: var(--grund-tief); border-top: 3px solid var(--gold); }
.fuss-innen { max-width: var(--breite); margin: 0 auto; padding: 2rem 1rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; }
.fuss h2 { font-size: 1.2rem; margin: 0 0 .5rem; }
.fuss p { margin: 0 0 .5rem; }
.fuss-links { list-style: none; padding: 0; margin: 0 0 .5rem; }
.klein { font-size: .85rem; color: var(--grau); }

@media print {
  body { background: #fff; color: #000; }
  .kopf, .fuss, .menue-knopf { display: none; }
  h1, h2, h3 { color: #000; }
}
