/* ===================================================================
   style.css – Bereinigt & Corporate aktualisiert für jraduss.net
   -------------------------------------------------------------------
   • KEINE Regeln für Navigation/Logo/Header/Burger (siehe nav-greedy.css)
   • Subseiten: weißer Hintergrund, Fließtext schwarz, Überschriften blau (#3a7cd4)
   • Aufzählungen: blaues Quadrat als Marker
   • Entfernt/unterbindet „drei Punkte“ (typ. Slider-Dots) am unteren linken Rand
   =================================================================== */

/* ------------------------------
   0) Variablen
   ------------------------------ */
:root{
  --color-bg: #ffffff;              /* Subseiten-Hintergrund */
  --color-surface: #f7f7f9;         /* helle Boxen */
  --color-surface-2: #eef1f6;
  --color-text: #000000;            /* Fließtext schwarz */
  --color-text-dim: #444c56;
  --color-accent: #3a7cd4;          /* Corporate Blau */
  --color-accent-2: #f5a000;        /* Orange */
  --color-blue: #3a7cd4;
  --color-orange: #f5a000;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-1: 0 8px 24px rgba(0,0,0,.10);
  --shadow-2: 0 12px 40px rgba(0,0,0,.14);
  --container: 1200px;
  --gap: 16px;
  --vh: 1vh;                        /* wird in script.js gesetzt */
}

/* ------------------------------
   1) Reset / Base
   ------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; scroll-behavior: smooth; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body{
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  line-height: 1.55;
  font-size: 16px;
}

img, svg, video, canvas, audio, iframe, embed, object { display: block; max-width: 100%; }
img { height: auto; }

a{ color: var(--color-accent); text-decoration: none; }
a:hover{ text-decoration: underline; }

/* Überschriften: blau (global, NICHT Leistungskatalog-Boxen) */
h1,h2,h3,h4,h5,h6 {
  color: var(--color-accent);
  line-height: 1.2;
  margin: 0 0 .5em 0;
}
h1 { font-size: clamp(28px, 4.8vw, 42px); }
h2 { font-size: clamp(24px, 3.6vw, 34px); }
h3 { font-size: clamp(20px, 2.8vw, 28px); }
h4 { font-size: clamp(18px, 2.2vw, 22px); }

/* Fließtext schwarz */
p { margin: 0 0 1em 0; color: var(--color-text); }
small, .text-small { font-size: .875rem; color: var(--color-text-dim); }
.muted { color: var(--color-text-dim); }

/* Listen – blaues Quadrat */
ul { margin: 0 0 1em 1.25em; list-style-type: square; }
ol { margin: 0 0 1em 1.25em; }
li + li { margin-top: .35em; }
/* Marker einfärben (moderne Browser) */
ul li::marker { color: var(--color-accent); }

/* Zitate & Code */
blockquote {
  margin: 0 0 1.2em 0;
  padding: .8em 1em;
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-text);
}
pre, code, kbd, samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
pre {
  margin: 1em 0;
  padding: 1em;
  background: #0f172a;
  color: #e6edf3;
  border-radius: var(--radius-md);
  overflow: auto;
}

/* Tabellen */
table { width: 100%; border-collapse: collapse; margin: 1em 0; }
th, td { padding: .75em .85em; border-bottom: 1px solid rgba(0,0,0,.08); }
th { text-align: left; color: var(--color-text); background: var(--color-surface-2); }
tbody tr:nth-child(even){ background: rgba(0,0,0,.03); }

/* ------------------------------
   2) Layout-Helfer
   ------------------------------ */
.container { width: min(100% - 2*var(--gap), var(--container)); margin-inline: auto; }
.section { padding: clamp(32px, 6vw, 72px) 0; }

.grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 2.4vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px){ .grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px){ .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

/* Karten / Boxen (allgemein) */
.card {
  background: var(--color-surface);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.card__body { padding: 18px; }
.card__title { margin-bottom: .35em; }
.card__meta { color: var(--color-text-dim); font-size: .9rem; }

/* ------------------------------
   3) Buttons (allgemein, NICHT Navigation)
   ------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1rem; border-radius: 10px; border: 0;
  background: var(--color-accent); color: #fff; font-weight: 700; cursor: pointer;
  text-decoration: none; box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transition: transform .06s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.05); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--secondary { background: var(--color-accent-2); color: #1a1f2a; }
.btn--ghost { background: transparent; color: var(--color-text); border: 1px solid rgba(0,0,0,.18); }

/* ------------------------------
   4) Formulare
   ------------------------------ */
input[type="text"],input[type="email"],input[type="tel"],input[type="url"],
input[type="number"],input[type="search"],input[type="password"],
textarea,select{
  width: 100%; padding: .7rem .8rem; border-radius: 10px;
  border: 1px solid rgba(0,0,0,.18); background: #fff; color: var(--color-text);
  outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 140px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #6b7280; }
input:focus, textarea:focus, select:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(58,124,212,.25); }

/* ------------------------------
   5) Medien / Hero (neutral)
   ------------------------------ */
video { background: #000; }

/* ------------------------------
   6) SEITEN-SPEZIFISCH – Leistungskatalog
   ------------------------------ */
/* Grid */
.lk-grid { 
  display: grid; 
  grid-template-columns: repeat(3, minmax(0,1fr)); 
  gap: 20px; 
}
@media (max-width: 980px){ .lk-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .lk-grid{ grid-template-columns: 1fr; } }

/* Kachel-Container */
.lk-grid .lk-card,
a.lk-card,
.lk-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #fff; /* Standardtextfarbe in der Kachel */
}

/* Bildbereich */
.lk-card__img,
.lk-media,
.lk-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: #e9eef7;
  overflow: hidden;
}

/* Abgedunkeltes Overlay */
.lk-card__img::after,
.lk-media::after,
.lk-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45); /* Verdunkelung */
  transition: background 0.3s ease;
  pointer-events: none;
  z-index: 1; /* unterhalb der Schrift */
}

/* Hover: Verdunkelung entfernen */
.lk-card:hover .lk-card__img::after,
.lk-card:hover .lk-media::after,
.lk-card:hover .lk-thumb::after {
  background: rgba(0,0,0,0);
}

/* Textcontainer – über Overlay legen */
.lk-card__body,
.lk-caption,
.lk-card .lk-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  z-index: 2; /* oberhalb Overlay */
}

/* Titel in Weiß mit Schatten */
.lk-card .lk-title,
.lk-title,
.lk-card__title {
  margin: 0 0 .25em 0;
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

/* Subtitle in Weiß mit leichtem Schatten */
.lk-card .lk-subtitle,
.lk-subtitle,
.lk-card__text,
.lk-text {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

/* Links in Kacheln erben Farbe */
.lk-card a { color: inherit; text-decoration: none; }
.lk-card a:hover { text-decoration: underline; }

/* Hover-Effekt für Kachel */
.lk-card:hover {
  box-shadow: var(--shadow-2);
  transform: translateY(-1px);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* Abstand H1 → Grid */
h1 + .lk-grid{ margin-top: 10px !important; }
.lk-grid{ margin-top: 10px; }

/* ------------------------------
   7) Utilities
   ------------------------------ */
.mt-0{ margin-top: 0 !important; } .mt-1{ margin-top: .25rem !important; } .mt-2{ margin-top: .5rem !important; }
.mt-3{ margin-top: 1rem !important; } .mt-4{ margin-top: 1.5rem !important; }
.mb-0{ margin-bottom: 0 !important; } .mb-1{ margin-bottom: .25rem !important; } .mb-2{ margin-bottom: .5rem !important; }
.mb-3{ margin-bottom: 1rem !important; } .mb-4{ margin-bottom: 1.5rem !important; }
.pt-0{ padding-top: 0 !important; } .pt-1{ padding-top: .25rem !important; } .pt-2{ padding-top: .5rem !important; }
.pt-3{ padding-top: 1rem !important; } .pt-4{ padding-top: 1.5rem !important; }
.pb-0{ padding-bottom: 0 !important; } .pb-1{ padding-bottom: .25rem !important; } .pb-2{ padding-bottom: .5rem !important; }
.pb-3{ padding-bottom: 1rem !important; } .pb-4{ padding-bottom: 1.5rem !important; }
.text-center{ text-align:center !important; } .text-right{ text-align:right !important; } .text-left{ text-align:left !important; }
.hidden{ display:none !important; }

/* ------------------------------
   8) „Drei Punkte“ (Slider/Carousel Dots) gezielt deaktivieren
   ------------------------------ */
.dots, .slick-dots, .swiper-pagination, .swiper-pagination-bullets,
.carousel-dots, .glide__bullets, .tns-nav, .tiny-slider, .owl-dots,
.pg-dots, .carousel__dots, .slider__dots, .gallery__dots{
  display: none !important;
}

/* ------------------------------
   9) Druck
   ------------------------------ */
@media print {
  body{ background:#fff; color:#000; }
  .card, .post, .contact-info { box-shadow: none; border-color: #ddd; }
  a{ color:#000; text-decoration: underline; }
}

/* ------------------------------
   10) Popups / Modals – immer über allem
   ------------------------------ */
/* der halbtransparente Layer */
.modal,
.modal-backdrop {
  position: fixed !important;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  z-index: 99990 !important;
}

/* das Dialog-Fenster selbst */
.modal__dialog,
.modal-dialog,
.modal-content {
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 99999 !important;
  max-width: 90% !important;
  max-height: 90% !important;
  overflow: auto !important;
}

/* falls dein Popup andere Klassen nutzt, hier einfach ergänzen */
.popup,
.popup__dialog {
  position: fixed !important;
  z-index: 99999 !important;
}