@charset "UTF-8";
/*──────────────────────────────────────────────
  DEFAULT.CSS – Basis, Typografie, Hero
  © 2026 seltsam. STUDIO FÜR VISUELLE MEDIEN
──────────────────────────────────────────────*/

/*==============================================================================
  01. BASICS
==============================================================================*/

body {
 font-family: var(--font-base);
 font-weight: var(--font-weight-regular);
 font-size: var(--font-size-base);
 line-height: var(--line-height-base);
 color: var(--color-text);
 background: var(--color-paper);
}

body:not(.core) ::selection {
 background: var(--color-brick);
 color: var(--color-paper);
}

body a {
 color: var(--color-link);
 text-decoration: underline;
 text-underline-offset: 0.18em;
 transition: color var(--transition-speed);
}
body a:hover {
 color: var(--color-link-hover);
 text-decoration: none;
}

:focus-visible {
 outline: 2px solid var(--color-brick-soft);
 outline-offset: 3px;
}

:target {
 scroll-margin-top: var(--header-height);
}

img {
 max-width: 100%;
}

/*==============================================================================
  02. TYPOGRAPHY
==============================================================================*/

/* "body :is()" hebt die Spezifität über leckrCMS.cleanup.css,
   das im eingeloggten Zustand h1-h5 global auf Open Sans setzt */
body :is(h1, h2, h3, h4, h5, h6) {
 font-family: var(--font-display);
 font-weight: var(--font-weight-display);
 line-height: var(--line-height-tight);
 text-transform: uppercase;
 letter-spacing: 0.005em;
 color: inherit;
 margin: 0 0 var(--space-md);
 text-wrap: balance;
}

h1 { font-size: var(--font-size-xl); }
h2 { font-size: var(--font-size-xl); }
h3 { font-size: var(--font-size-lg); margin-top: var(--space-lg); }
h4 { font-size: var(--font-size-md); margin-top: var(--space-lg); }
body :is(h5, h6) {
 font-family: var(--font-base);
 font-weight: var(--font-weight-bold);
 font-size: var(--font-size-base);
 text-transform: none;
 margin-top: var(--space-md);
}

p, ul, ol {
 font-size: var(--font-size-base);
 margin: 0 0 var(--space-md);
}
ul, ol {
 padding-left: 1.25rem;
}
li {
 margin-bottom: 0.35rem;
}
li::marker {
 color: var(--color-brick);
}

b, strong {
 font-weight: var(--font-weight-bold);
}

/* Mono-Label, z. B. Abschnittstitel oder Strecke */
.label-mono {
 font-family: var(--font-mono);
 font-size: var(--font-size-xs);
 font-weight: var(--font-weight-medium);
 letter-spacing: var(--letter-spacing-label);
 text-transform: uppercase;
 color: var(--color-muted);
}

/* Koordinaten als Markenzeichen */
.coords {
 font-family: var(--font-mono);
 font-size: var(--font-size-xs);
 letter-spacing: 0.06em;
 white-space: nowrap;
}

/*==============================================================================
  03. BUTTONS
==============================================================================*/

.btn,
.btn-primary {
 background-color: var(--color-brick);
 border: 0;
 border-radius: var(--radius-pill);
 color: var(--color-paper);
 font-family: var(--font-mono);
 font-size: var(--font-size-sm);
 font-weight: var(--font-weight-medium);
 padding: 0.6rem 1.4rem;
 transition: background-color var(--transition-speed), color var(--transition-speed);
}
.btn:hover,
.btn-primary:hover,
.btn:focus-visible {
 background-color: var(--color-ink);
 color: var(--color-paper);
 text-decoration: none;
}

.btn-outline-primary {
 background: transparent;
 color: var(--color-ink);
 border: 1px solid var(--color-ink);
}
.btn-outline-primary:hover {
 background: var(--color-ink);
 color: var(--color-paper);
}

/*==============================================================================
  04. HERO "VON A NACH B"
  Markup: /templates/slider.php, Logik: functions.js (initHero)
==============================================================================*/

.hero {
 position: relative;
 background: var(--color-ink);
 color: var(--color-paper);
 aspect-ratio: 8 / 3;
 min-height: 560px;
 max-height: 100svh;
 width: 100%;
 overflow: hidden;
}

.hero-frame {
 position: absolute;
 inset: 0;
}

.hero-slide {
 position: absolute;
 inset: 0;
 opacity: 0;
 transition: opacity 1.1s ease;
}
.hero-slide.is-on {
 opacity: 1;
}

.hero-img {
 position: absolute;
 inset: 0;
 width: 100%;
 height: 100%;
 object-fit: cover;
 object-position: 50% 50%;
}

/* Verlauf oben (Navigation) und unten (Leistungszeile) */
.hero-slide::after {
 content: "";
 position: absolute;
 inset: 0;
 background: linear-gradient(180deg,
  rgba(12, 24, 32, 0.72) 0%,
  rgba(12, 24, 32, 0.05) 26%,
  rgba(12, 24, 32, 0) 55%,
  rgba(12, 24, 32, 0.78) 100%);
}

.hero-copy {
 position: absolute;
 inset: 0;
 z-index: 2;
 padding: calc(var(--header-height) + 2rem) var(--edge) 6.5rem;
}
.hero-lines {
 position: relative;
 height: 100%;
}

.hero-von,
.hero-nach,
.hero-single {
 position: absolute;
 margin: 0;
 font-family: var(--font-display);
 font-weight: var(--font-weight-display);
 font-size: var(--font-size-hero);
 line-height: var(--line-height-display);
 text-transform: uppercase;
 letter-spacing: 0.005em;
 text-shadow: var(--shadow-text);
 opacity: 0;
 transform: translateY(12px);
 transition: transform 0.9s cubic-bezier(.2, .7, .2, 1), opacity 0.9s;
}
.hero-von,
.hero-single { left: 0; top: 0; }
.hero-nach { right: 0; bottom: 0; text-align: right; }

.hero-slide.is-on .hero-von,
.hero-slide.is-on .hero-single { opacity: 1; transform: none; transition-delay: 0.35s; }
.hero-slide.is-on .hero-nach { opacity: 1; transform: none; transition-delay: 1.1s; }

.hero .pre {
 font-weight: var(--font-weight-bold);
 opacity: 0.9;
}

.hero-von .coords,
.hero-nach .coords {
 display: block;
 margin-top: 0.75rem;
 color: var(--color-paper);
 text-transform: none;
 text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 14px rgba(0, 0, 0, 0.6);
}

/* Leistungszeile unten */
.hero-foot {
 position: absolute;
 left: 0;
 right: 0;
 bottom: 0;
 z-index: 3;
 display: flex;
 flex-wrap: wrap;
 align-items: flex-end;
 justify-content: space-between;
 gap: 1rem 2rem;
 padding: 0 var(--edge) 2.1rem;
}

.hero-tag {
 display: flex;
 flex-direction: column;
 gap: 0.4rem;
 max-width: 34em;
}
.hero-svc {
 font-family: var(--font-mono);
 font-size: var(--font-size-xs);
 letter-spacing: var(--letter-spacing-label);
 text-transform: uppercase;
 display: inline-flex;
 align-items: center;
 gap: 0.6rem;
 color: var(--color-paper);
 text-decoration: none;
 text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 12px rgba(0, 0, 0, 0.5);
}
.hero-svc::before {
 content: "";
 width: 1.5rem;
 height: 2px;
 background: var(--color-brick-soft);
}
a.hero-svc:hover {
 color: var(--color-brick-soft);
}
.hero-sub {
 font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.375rem);
 font-weight: var(--font-weight-medium);
 text-wrap: balance;
}

.hero-ctrl {
 display: flex;
 align-items: center;
 gap: 0.9rem;
}
.hero-dots {
 display: flex;
 gap: 0.4rem;
}
.hero-dots button {
 position: relative;
 width: 34px;
 height: 20px;
 border: 0;
 padding: 0;
 background: transparent;
 cursor: pointer;
}
.hero-dots button::before,
.hero-dots button span {
 content: "";
 position: absolute;
 left: 0;
 top: 9px;
 height: 2px;
}
.hero-dots button::before {
 right: 0;
 background: rgba(243, 241, 236, 0.35);
}
.hero-dots button span {
 width: 0;
 background: var(--color-paper);
}
.hero-dots button.is-on span {
 animation: heroFill var(--hero-duration, 7000ms) linear forwards;
}
.is-paused .hero-dots button.is-on span {
 animation-play-state: paused;
}
@keyframes heroFill {
 to { width: 100%; }
}

.hero-pause {
 width: 34px;
 height: 34px;
 border-radius: 50%;
 border: 1px solid rgba(243, 241, 236, 0.4);
 background: transparent;
 color: var(--color-paper);
 font-size: 12px;
 line-height: 1;
 cursor: pointer;
}
.hero-pause:hover {
 border-color: var(--color-paper);
}

/* Handy: Leistungszeile wandert unter das Bild */
.hero-mobile-tag {
 display: none;
}

/*==============================================================================
  05. UNTERSEITEN (Impressum, Datenschutz)
==============================================================================*/

.page-head {
 background: var(--color-ink);
 color: var(--color-paper);
 padding: calc(var(--header-height) + var(--space-xl)) 0 var(--space-xl);
}
.page-head h1 {
 margin: 0;
 font-size: var(--font-size-xl);
}
.page-head h2 {
 margin: var(--space-sm) 0 0;
 font-family: var(--font-base);
 font-weight: var(--font-weight-medium);
 font-size: var(--font-size-md);
 text-transform: none;
}
.page-head h2:empty {
 display: none;
}

.page-body {
 padding: var(--space-section) 0;
}
.page-body .content {
 max-width: 72ch;
}
.page-body h3 {
 font-size: var(--font-size-md);
 margin-top: var(--space-xl);
}
.page-body h4 {
 font-family: var(--font-base);
 font-weight: var(--font-weight-bold);
 font-size: var(--font-size-base);
 text-transform: none;
 margin-top: var(--space-lg);
}

/*==============================================================================
  06. UTILITIES
==============================================================================*/

.container,
.navbar .container-fluid {
 max-width: var(--container-max);
}
.container {
 padding-left: var(--space-gutter);
 padding-right: var(--space-gutter);
}

.toTop {
 position: fixed;
 bottom: 1.5rem;
 right: 1rem;
 z-index: 20;
 display: none;
 width: 44px;
 height: 44px;
 padding: 0;
 border-radius: 50%;
 background: var(--color-ink);
 color: var(--color-paper);
 border: 1px solid rgba(243, 241, 236, 0.3);
 font-size: 1rem;
}
.btn.toTop:hover {
 background: var(--color-brick);
 color: var(--color-paper);
}

/*==============================================================================
  07. RESPONSIVE
==============================================================================*/

@media (max-width: 767.98px) {
 :root {
  --header-height: 64px;
 }

 .hero {
  aspect-ratio: auto;
  min-height: 0;
  max-height: none;
 }
 .hero-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  margin-top: var(--header-height);
 }
 .hero-img {
  object-position: var(--mx, 50%) 50%;
 }
 .hero-slide::after {
  background: linear-gradient(180deg, rgba(12, 24, 32, 0.15) 0%, rgba(12, 24, 32, 0) 40%, rgba(12, 24, 32, 0.55) 100%);
 }
 .hero-copy {
  padding: 1.1rem var(--space-gutter) 1.4rem;
 }
 .hero-von,
 .hero-nach,
 .hero-single {
  font-size: clamp(2.5rem, 13vw, 3.6rem);
 }
 .hero-von .coords,
 .hero-nach .coords {
  font-size: 10px;
  margin-top: 0.35rem;
 }
 .hero-foot {
  display: none;
 }
 .hero-mobile-tag {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1rem 1.5rem;
  background: var(--color-ink);
  color: var(--color-paper);
 }
}

@media (prefers-reduced-motion: reduce) {
 .hero-slide,
 .hero-von,
 .hero-nach,
 .hero-single {
  transition: none;
 }
 .hero-dots button.is-on span {
  animation: none;
  width: 100%;
 }
}

/*==============================================================================
  08. PRINT
==============================================================================*/
@media print {
 * {
  background: transparent !important;
  color: var(--color-black) !important;
  box-shadow: none !important;
  text-shadow: none !important;
 }
 header, .toTop, .hero-ctrl {
  display: none !important;
 }
 a[href^="http"]:after {
  content: " (" attr(href) ")";
 }
}

/* Erster Block im Unterseiten-Inhalt ohne Extra-Abstand */
.page-body .content > :first-child {
 margin-top: 0;
}

/* Eingeloggt: Platz für die leckrCMS-Leiste unten */
body:has(.leckrCMS_footer) {
 padding-bottom: 42px;
}
body:has(.leckrCMS_footer) .toTop {
 bottom: calc(42px + 1rem);
}
