/* modern.css - Schenk & Plomer Modern Redesign */

/* Typography – alle Fonts lokal eingebunden (DSGVO-konform, kein externer CDN-Aufruf) */

/* Inter – Fließtext & UI */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Network Font – lokal eingebunden.
/* Network Font – Akzentschrift, lokal eingebunden */
@font-face {
  font-family: 'Network';
  src: url('/fonts/Network.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Colors */
  --bg-primary: #FFFFFF;
  --bg-secondary: #FCFAF5;
  /* Warmer background like soft cotton/creme */
  --bg-accent: #F4EFE6;
  /* Warmer accent */

  --brand-blue: #312783;
  /* New primary dark blue */
  --brand-blue-hover: #211961;
  --brand-blue-light: rgba(49, 39, 131, 0.05);

  --text-primary: #2C2A28;
  /* Warmer dark grey/brownish black */
  --text-secondary: #5A544F;
  /* Warmer secondary text */
  --text-muted: #A39E99;

  /* Fonts */
  --font-heading: 'Arial Black', Arial, sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Network', 'Inter', sans-serif;

  /* Border Radius */
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-blue: 0 10px 15px -3px rgba(0, 51, 102, 0.2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  margin-top: 0;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.5rem;
  font-weight: 900;
}

p {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
}

.network-font {
  font-family: var(--font-accent);
  font-weight: normal;
  font-size: 1.45em;
  /* Rößer eingesetzt */
  letter-spacing: 0;
  color: var(--brand-blue);
  line-height: 1;
}

a {
  color: var(--brand-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--brand-blue-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--brand-blue);
  color: white;
  box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
  background-color: var(--brand-blue-hover);
  transform: translateY(-2px);
  color: white;
}

.btn-outline {
  background-color: transparent;
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}

.btn-outline:hover {
  background-color: var(--brand-blue-light);
  transform: translateY(-2px);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-blue);
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -0.5rem;
  background: white;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  padding: 0.5rem 0;
  list-style: none;
  z-index: 1000;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Dropdown chevron indicator */
.dropdown-parent>a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 6px;
  margin-bottom: 2px;
  transition: transform 0.2s ease;
}

.dropdown-parent:hover>a::after {
  transform: rotate(-135deg);
}

.dropdown-parent:hover .dropdown-menu {
  display: block;
  animation: dropIn 0.2s ease forwards;
}

@keyframes dropIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.45rem 1.2rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.88rem;
}

.dropdown-menu a:hover {
  background: var(--brand-blue-light);
  color: var(--brand-blue);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
}

/* Hero Section (Slider) */
.hero {
  position: relative;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 1.2s ease-in-out;
  will-change: opacity;
}

.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
}

.slide.active {
  opacity: 1;
}

.hero .slide-container {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  z-index: 10;
  max-width: 650px;
  margin-left: max(5%, calc((100% - 1280px) / 2));
}

/* Slanted Blue Box */
.slanted-box {
  background-color: var(--brand-blue);
  color: white;
  padding: 3rem 4rem;
  box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.4);
  /* Strong drop shadow */
  transform: rotate(-2deg);
  /* Rechteck, aber gedreht */
  display: inline-block;
  border-radius: 0;
  /* Rechteckig */
}

.slanted-content {
  transform: rotate(2deg);
  /* Re-align the text */
}

/* Button overrides on dark blue */
.btn-primary.white-bg {
  background-color: white;
  color: var(--brand-blue);
}

.btn-primary.white-bg:hover {
  background-color: var(--bg-secondary);
  color: var(--brand-blue);
}

.btn-outline.white-border {
  border-color: white;
  color: white;
}

.btn-outline.white-border:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.hero-content h1 {
  margin-bottom: 1rem;
  color: white;
  text-shadow: none;
  /* Removed text shadow since it's on solid blue */
}

.hero-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

/* Facts Bar — Prominent company stats strip */
.facts-bar {
  background-color: var(--brand-blue);
  padding: 3rem 0;
  position: relative;
  z-index: 20;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.fact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  position: relative;
}

.fact-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 10%;
  height: 80%;
  width: 2px;
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(-2deg);
}

.fact-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: white !important;
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.fact-label {
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.75);
}

@media (max-width: 768px) {
  .facts-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1rem;
  }

  .fact-item:not(:last-child)::after {
    display: none;
  }
}

/* Sections */
.section {
  padding: 70px 0;
}

.section-bg {
  background-color: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
  max-width: 700px;
  margin-inline: auto;
}

.section-header h2 {
  color: var(--brand-blue);
}

/* Features / Services (Cards & Dropdowns) */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 2.5rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(0, 51, 102, 0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: var(--brand-blue);
  border-radius: 0;
  /* Eckig */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
  transform: rotate(-2deg);
  /* Rechteck gedreht */
  box-shadow: var(--shadow-sm);
}

.feature-icon img {
  width: 32px;
  height: 32px;
  transform: rotate(2deg);
  filter: brightness(0) invert(1);
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.feature-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Accordion (Details) */
details {
  margin-top: 1.5rem;
  border-top: 1px solid #eee;
  padding-top: 1rem;
}

summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--brand-blue);
  list-style: none;
  /* Hide default arrow */
  display: flex;
  align-items: center;
  justify-content: space-between;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: '+';
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.2s ease;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details .content {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* News / Projects Section */
.bg-blue {
  background-color: var(--brand-blue);
}

.bg-blue h2,
.bg-blue p,
.bg-blue .network-font {
  color: white !important;
}

.bg-blue .section-header p {
  color: rgba(255, 255, 255, 0.8) !important;
}

/* Network font on ANY dark background */
.subpage-hero .network-font,
.facts-bar .network-font,
.slanted-box .network-font,
.bg-blue .network-font,
footer .network-font {
  color: white !important;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.news-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.news-img {
  height: 250px;
  width: 100%;
  object-fit: cover;
}

.news-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-content h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.news-content .read-more {
  margin-top: auto;
  font-weight: 600;
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.news-content .read-more::after {
  content: '→';
  transition: transform 0.2s ease;
}

.news-card:hover .read-more::after {
  transform: translateX(5px);
}

/* Companies split view */
.split-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 4rem;
}

.company-panel {
  padding: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  background-size: cover;
  background-position: center;
}

.company-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.85);
  /* Frost effect overlay */
}

.company-panel>* {
  position: relative;
  z-index: 1;
}

.company-logo {
  height: 60px;
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  background-color: var(--brand-blue);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.75rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: white;
}

/* Media Queries */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content p {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .split-view {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  #nav-menu {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    padding: 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  }

  #nav-menu.active {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  #nav-menu.active .nav-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .mobile-menu-btn {
    display: block;
  }

  /* Fix for mobile slider display */
  .hero .slide-container {
    margin-left: 5%;
    max-width: 90%;
  }

  .slanted-box {
    padding: 1.5rem;
    transform: rotate(0deg);
    border-radius: var(--radius-md);
  }

  .slanted-content {
    transform: rotate(0deg);
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  .section {
    padding: 60px 0;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* Animations */
.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subpage Hero Banner */
.subpage-hero {
  background-color: var(--brand-blue);
  padding: 10rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.subpage-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
}

.subpage-hero .container {
  position: relative;
  z-index: 2;
}

.subpage-hero h1 {
  color: white;
  margin-bottom: 1rem;
}

.subpage-hero p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 600px;
  font-size: 1.15rem;
}

.text-center {
  text-align: center;
}

.text-center p {
  margin-inline: auto;
}

/* Content sections for subpages */
.content-section {
  padding: 4rem 0;
  background: white;
}

.content-section h1,
.content-section h2,
.content-section h3 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.content-section h2 {
  color: var(--brand-blue);
  margin-bottom: 2rem;
}

.content-section ul {
  padding-left: 1.5rem;
}

.content-section li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.content-section p {
  max-width: 800px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.content-section a {
  color: var(--brand-blue);
  text-decoration: underline;
}

/* Legal pages: old .subpage.def class */
.subpage.def {
  color: var(--text-secondary) !important;
  line-height: 1.8;
}

.subpage.def h1 {
  color: var(--brand-blue) !important;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--brand-blue);
  padding-bottom: 0.75rem;
}

.subpage.def h2,
.subpage.def h3 {
  color: var(--text-primary) !important;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.subpage.def p {
  color: var(--text-secondary) !important;
  margin-bottom: 1rem;
}

.subpage.def a {
  color: var(--brand-blue) !important;
}

.subpage.def strong {
  color: var(--text-primary);
}