/* ==========================================================================
   style.css – Statisches CSS (ersetzt Tailwind CSS CDN)
   Nur die tatsächlich genutzten Utility-Klassen + Custom-Styles
   ========================================================================== */

/* ---------- @font-face: Inter (lokal gehostet, nur latin + latin-ext) ---------- */
/* latin-ext – 400 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/inter/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin – 400 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/inter/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext – 500 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/inter/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin – 500 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/inter/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext – 600 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/inter/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin – 600 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/inter/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext – 700 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/inter/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin – 700 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/inter/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext – 800 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/inter/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa25L7SUc.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin – 800 */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(fonts/inter/UcC73FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- CSS Reset / Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---------- Skip-to-content (Accessibility) ---------- */
.skip-to-content {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 99999;
  background: #0070c0;
  color: #fff;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 0.5rem 0;
}
.skip-to-content:focus {
  left: 0;
}

/* ---------- Focus-visible Styles (Accessibility) ---------- */
:focus-visible {
  outline: 3px solid #0070c0;
  outline-offset: 2px;
}

/* ---------- Custom Colors ---------- */
:root {
  --color-primary: #0070c0;
  --color-secondary: #f0f4f8;
  --color-accent: #10b981;
  --color-archive-note: #c2410c; /* WCAG AA: #f97316 gab weder mit weissem Text noch als Text auf Weiss 4.5:1 */
}

/* ---------- Body / Typography ---------- */
body {
  background-color: #fff;
  color: #1f2937; /* text-gray-800 */
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Verhindert horizontales Overflow durch lange, nicht trennbare
     Woerter (z. B. deutsche Komposita wie "Unternehmensgeschichte")
     in schmalen Mobil-Containern. */
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ---------- Custom transition helper ---------- */
.transition-all-300 {
  transition: all 300ms ease-in-out;
}

/* ---------- Icon Styling ---------- */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke-width: 2;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =====================================================================
   TAILWIND UTILITY CLASSES (statisch extrahiert)
   ===================================================================== */

/* --- Display --- */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex { display: flex; }
.grid { display: grid; }

/* --- Position --- */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

/* --- Z-Index --- */
.z-50 { z-index: 50; }

/* --- Overflow --- */
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

/* --- Flex --- */
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.5rem; }
.space-x-4 > :not([hidden]) ~ :not([hidden]) { margin-left: 1rem; }
.space-x-8 > :not([hidden]) ~ :not([hidden]) { margin-left: 2rem; }
.space-y-1 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.25rem; }
.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }

/* --- Grid --- */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }

/* --- Width / Height --- */
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-full { width: 100%; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.6rem; }
.h-8 { height: 2rem; width: auto; } /* explizit statt HTML-width-Praesentationshint -> proportional, behebt image-aspect-ratio */
.h-auto { height: auto; }
.max-w-md { max-width: 28rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }

/* --- Margin --- */
.mx-auto { margin-left: auto; margin-right: auto; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }

/* --- Padding --- */
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-16 { padding-top: 4rem; }
.pt-20 { padding-top: 5rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: 1rem; }
.pb-16 { padding-bottom: 4rem; }
.pb-20 { padding-bottom: 5rem; }
.pl-4 { padding-left: 1rem; }

/* --- Background --- */
.bg-white { background-color: #fff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-900 { background-color: #111827; }
footer nav[aria-label="Footer-Navigation"] a { color: inherit; } /* Browser-Link-Blau (#0000EE) statt geerbtem .text-white war < 4.5:1 */
.bg-secondary { background-color: var(--color-secondary); }
.bg-primary { background-color: var(--color-primary); }
.bg-archive-note { background-color: var(--color-archive-note); }
.bg-primary\/5 { background-color: rgba(0, 112, 192, 0.05); }
.bg-primary\/10 { background-color: rgba(0, 112, 192, 0.1); }
.bg-primary\/80 { background-color: rgba(0, 112, 192, 0.8); }
.bg-accent\/10 { background-color: rgba(16, 185, 129, 0.1); }
.bg-gray-900\/10 { background-color: rgba(17, 24, 39, 0.1); }

/* --- Text Color --- */
.text-white { color: #fff; }
.text-gray-100 { color: #f3f4f6; }
.text-gray-400 { color: #4b5563; } /* WCAG AA: #9ca3af war auf hellem Hintergrund zu kontrastarm (< 3:1) */
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
/* Kontakt-Sektion hat dunkelblauen Hintergrund (.bg-primary): dort helleres Grau statt .text-gray-400, sonst < 3:1 */
#kontakt .text-gray-400 { color: #eef4fa; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-primary { color: var(--color-primary); }
.text-accent { color: var(--color-accent); }
.text-archive-note { color: var(--color-archive-note); }
footer .text-archive-note { color: #fb923c; } /* dunkler Footer: hellere Variante noetig fuer 4.5:1 (var(--color-archive-note) ist fuer helle Hintergruende gedacht) */

/* --- Font Size --- */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.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; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

/* --- Font Weight --- */
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

/* --- Font Family --- */
.font-sans { font-family: 'Inter', sans-serif; }

/* --- Text Align --- */
.text-center { text-align: center; }
.text-left { text-align: left; }

/* --- Text Decoration --- */
.underline { text-decoration: underline; }
.no-underline { text-decoration: none; }

/* --- Text Transform / Tracking --- */
.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-wider { letter-spacing: 0.05em; }

/* --- Border --- */
.border { border-width: 1px; border-style: solid; border-color: #e5e7eb; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-t-4 { border-top-width: 4px; border-top-style: solid; }
.border-l-4 { border-left-width: 4px; border-left-style: solid; }
.border-transparent { border-color: transparent; }
.border-gray-100 { border-color: #f3f4f6; }
.border-gray-200 { border-color: #e5e7eb; }
.border-white { border-color: #fff; }
.border-4 { border-width: 4px; }
.border-primary { border-color: var(--color-primary); }
.border-accent { border-color: var(--color-accent); }
.border-gray-900 { border-color: #111827; }
.border-archive-note { border-color: var(--color-archive-note); }

/* --- Border Radius --- */
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }

/* --- Shadow --- */
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

/* --- Opacity --- */
.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }

/* --- Object Fit --- */
.object-cover { object-fit: cover; }

/* --- List --- */
.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }

/* --- Cursor --- */
.cursor-pointer { cursor: pointer; }

/* --- Hover --- */
.hover\:text-primary:hover { color: var(--color-primary); }
.hover\:text-accent:hover { color: var(--color-accent); }
.hover\:bg-white:hover { background-color: #fff; }
.hover\:bg-secondary:hover { background-color: var(--color-secondary); }
.hover\:bg-primary\/90:hover { background-color: rgba(0, 112, 192, 0.9); }
.hover\:bg-archive-note\/90:hover { background-color: rgba(194, 65, 12, 0.9); }
.hover\:underline:hover { text-decoration: underline; }

/* =====================================================================
   RESPONSIVE BREAKPOINTS
   ===================================================================== */

/* --- sm: 640px --- */
@media (min-width: 640px) {
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:text-5xl { font-size: 3rem; line-height: 1; }
  .sm\:h-10 { height: 2.5rem; }
  .sm\:inline { display: inline; }
  .sm\:flex { display: flex; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:mb-0 { margin-bottom: 0; }
}

/* --- md: 768px --- */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:inline-flex { display: inline-flex; }
  .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\:space-x-16 > :not([hidden]) ~ :not([hidden]) { margin-left: 4rem; }
}

/* --- lg: 1024px --- */
@media (min-width: 1024px) {
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .lg\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:gap-10 { gap: 2.5rem; }
  .lg\:gap-16 { gap: 4rem; }
  .lg\:order-1 { order: 1; }
  .lg\:order-2 { order: 2; }
  .lg\:text-left { text-align: left; }
  .lg\:text-5xl { font-size: 3rem; line-height: 1; }
  .lg\:mx-0 { margin-left: 0; margin-right: 0; }
  .lg\:justify-start { justify-content: flex-start; }
  .lg\:justify-end { justify-content: flex-end; }
  .lg\:max-w-full { max-width: 100%; }
}

/* --- Order helpers (non-responsive) --- */
.order-1 { order: 1; }
.order-2 { order: 2; }

/* =====================================================================
   PAGE-SPECIFIC: Impressum / Datenschutz
   ===================================================================== */
.prose { max-width: 65ch; }
.prose h1 { font-size: 2.25rem; font-weight: 800; color: #111827; margin-bottom: 1rem; line-height: 1.25; }
.prose h2 { font-size: 1.5rem; font-weight: 700; color: #111827; margin-top: 2rem; margin-bottom: 0.75rem; }
.prose h3 { font-size: 1.25rem; font-weight: 600; color: #111827; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.prose p { margin-bottom: 1rem; color: #374151; line-height: 1.75; }
.prose ul { list-style-type: disc; padding-left: 1.5rem; margin-bottom: 1rem; }
.prose ul li { margin-bottom: 0.25rem; color: #374151; line-height: 1.75; }
.prose a { color: var(--color-primary); text-decoration: underline; }
.prose a:hover { color: rgba(0, 112, 192, 0.8); }
.prose strong { font-weight: 700; color: #111827; }
