/* =====================================================================
   1A Dach-Netzwerk – lokales Stylesheet
   Ersetzt das externe Tailwind-CDN. Enthaelt nur die auf dieser Seite
   verwendeten Utility-Klassen. Keinerlei externe Aufrufe -> DSGVO-konform.
   ===================================================================== */

/* ---------- Reset / Preflight ---------- */
*, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: #e5e7eb; }
html { line-height: 1.5; -webkit-text-size-adjust: 100%;
       font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body { margin: 0; line-height: inherit; }
h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; margin: 0; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: inherit; }
img, svg, canvas, video { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; font-size: 100%; line-height: inherit; color: inherit; margin: 0; }
button { background: transparent; background-image: none; cursor: pointer; padding: 0; text-transform: none; }
button, [type="button"], [type="submit"] { -webkit-appearance: button; }
strong, b { font-weight: bolder; }
em { font-style: italic; }

/* ---------- Display / Position ---------- */
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.overflow-hidden { overflow: hidden; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-50 { z-index: 50; }
.mx-auto { margin-left: auto; margin-right: auto; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

/* ---------- Sizing ---------- */
.w-full { width: 100%; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.h-16 { height: 4rem; }
.max-w-none { max-width: none; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }

/* ---------- Padding ---------- */
.p-3 { padding: .75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: .5rem; padding-right: .5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: .25rem; padding-bottom: .25rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.py-3 { padding-top: .75rem; padding-bottom: .75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }

/* ---------- Margin ---------- */
.mb-2 { margin-bottom: .5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-20 { margin-top: 5rem; }
.ml-5 { margin-left: 1.25rem; }
.mr-2 { margin-right: .5rem; }
.mr-6 { margin-right: 1.5rem; }

/* ---------- Gap ---------- */
.gap-2 { gap: .5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* ---------- Space between children ---------- */
.space-x-3 > * + * { margin-left: .75rem; }
.space-y-1 > * + * { margin-top: .25rem; }
.space-y-2 > * + * { margin-top: .5rem; }
.space-y-3 > * + * { margin-top: .75rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

/* ---------- Borders ---------- */
.border { border-width: 1px; }
.border-b-4 { border-bottom-width: 4px; }
.border-t-8 { border-top-width: 8px; }
.border-l-4 { border-left-width: 4px; }
.border-primary { border-color: #1c4963; }
.border-accent { border-color: #a11d18; }
.border-stone-100 { border-color: #f5f5f4; }
.border-stone-200 { border-color: #e7e5e4; }
.border-white\/20 { border-color: rgba(255, 255, 255, .2); }

/* ---------- Rounded ---------- */
.rounded { border-radius: .25rem; }
.rounded-lg { border-radius: .5rem; }
.rounded-xl { border-radius: .75rem; }
.rounded-2xl { border-radius: 1rem; }

/* ---------- Background colors ---------- */
.bg-white { background-color: #ffffff; }
.bg-accent { background-color: #a11d18; }
.bg-stone-50 { background-color: #fafaf9; }
.bg-stone-900 { background-color: #1c1917; }
.bg-white\/10 { background-color: rgba(255, 255, 255, .1); }

/* ---------- Text colors ---------- */
.text-white { color: #ffffff; }
.text-primary { color: #1c4963; }
.text-accent { color: #a11d18; }
.text-stone-400 { color: #a8a29e; }
.text-stone-500 { color: #78716c; }
.text-stone-600 { color: #57534e; }
.text-stone-800 { color: #292524; }
.text-green-600 { color: #16a34a; }
.text-amber-600 { color: #d97706; }

/* ---------- Typography ---------- */
.text-xs { font-size: .75rem; line-height: 1rem; }
.text-sm { font-size: .875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.font-bold { font-weight: 700; }
.font-sans { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.leading-relaxed { line-height: 1.625; }
.text-center { text-align: center; }
.list-disc { list-style-type: disc; }

/* ---------- Shadows ---------- */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,.05); }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1); }
.shadow-inner { box-shadow: inset 0 2px 4px 0 rgba(0,0,0,.05); }

/* ---------- Effects ---------- */
.opacity-80 { opacity: .8; }
.opacity-90 { opacity: .9; }
.cursor-pointer { cursor: pointer; }
.accent-accent { accent-color: #a11d18; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(.4,0,.2,1); transition-duration: .15s; }
.transition-colors { transition-property: color, background-color, border-color, fill, stroke; transition-timing-function: cubic-bezier(.4,0,.2,1); transition-duration: .15s; }
.duration-300 { transition-duration: .3s; }

/* ---------- Hover ---------- */
.hover\:bg-red-800:hover { background-color: #991b1b; }
.hover\:bg-stone-100:hover { background-color: #f5f5f4; }
.hover\:text-accent:hover { color: #a11d18; }

/* ---------- Responsive: sm (>=640px) ---------- */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Responsive: md (>=768px) ---------- */
@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:h-20 { height: 5rem; }
  .md\:mt-0 { margin-top: 0; }
  .md\:p-12 { padding: 3rem; }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
  .md\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .md\:text-left { text-align: left; }
}

/* ---------- Responsive: lg (>=1024px) ---------- */
@media (min-width: 1024px) {
  .lg\:flex-row { flex-direction: row; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:w-1\/3 { width: 33.333333%; }
  .lg\:w-2\/3 { width: 66.666667%; }
}

/* =====================================================================
   Seiten-spezifische Stile (vorher im <style>-Block der Seite)
   ===================================================================== */
:root {
  --primary: #1c4963;
  --accent: #a11d18;
  --light: #ffffff;
  --gray: #f4f4f4;
}

.bg-primary {
  background:
    linear-gradient(rgba(28, 73, 99, 0.78), rgba(28, 73, 99, 0.78)),
    url('../img/hero.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.4s ease-out; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.chart-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: auto;
  height: 300px;
}

.nav-link.active {
  border-bottom: 3px solid var(--accent);
  color: var(--primary);
  font-weight: bold;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* WHATSAPP FLOATING BUTTON (unten rechts, immer sichtbar) */
.wa-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.wa-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
  animation: waPulse 2.5s infinite;
}
.wa-icon:hover { transform: scale(1.08); }
.wa-icon svg { width: 34px; height: 34px; fill: #fff; }
.wa-bubble {
  background: #fff;
  color: #1c4963;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  font-size: 14px;
  line-height: 1.35;
  font-weight: bold;
  white-space: nowrap;
}
.wa-bubble small { display: block; font-size: 12px; font-weight: normal; color: #6b7280; }
@keyframes waPulse {
  0%   { box-shadow: 0 4px 12px rgba(0,0,0,0.25), 0 0 0 0 rgba(37,211,102,0.5); }
  70%  { box-shadow: 0 4px 12px rgba(0,0,0,0.25), 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 4px 12px rgba(0,0,0,0.25), 0 0 0 0 rgba(37,211,102,0); }
}
@media (max-width: 640px) {
  .wa-bubble { display: none; }
}
