/* ===============================
   Base Styles
================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
p, ul, ol, figure {
  margin: 0;
  padding: 0.5em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
}

p, li {
  font-size: clamp(1rem, 4vw, 1.125rem);
}

/* ===============================
   Layout & Grid
================================ */

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

[class^="col-"] {
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
  background: #fff;
  border: 2px solid #0077cc;
  border-radius: 6px;
  padding: 1.25rem;
  margin-left: 1em;
  margin-right: 1em;
}

@media (max-width: 768px) {
  .col-md-1  { width: 8.333%; }
  .col-md-2  { width: 16.666%; }
  .col-md-3  { width: 25%; }
  .col-md-4  { width: 33.333%; }
  .col-md-5  { width: 41.666%; }
  .col-md-6  { width: 100%; }
  .col-md-7  { width: 58.333%; }
  .col-md-8  { width: 66.666%; }
  .col-md-9  { width: 75%; }
  .col-md-10 { width: 83.333%; }
  .col-md-11 { width: 91.666%; }
  .col-md-12 { width: 100%; }
}

/* ===============================
   Header & Navigation
================================ */

.site-header {
  position: sticky;
  top: 0;
  background: #fff;
  padding: 1rem;
  z-index: 2000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

/* Navigation */
.nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

.nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 8px 12px;
  transition: color 0.3s ease;
}

.nav a.active {
  color: #0077cc;
  position: relative;
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -4px;
  height: 2px;
  background: #0077cc;
}

.nav a:hover {
  color: #0077cc;
}

/* Burger-Menü für Mobile */
.nav-toggle,
.nav-toggle-label {
  display: none;
}

@media (max-width: 768px) {
  .nav-toggle-label {
    display: block;
    font-size: 2rem;
    cursor: pointer;
    user-select: none;
  }
  
  .nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.8); 
    padding: 0;
    margin: 0;
    border-top: 1px solid #ddd;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    z-index: 1000;
  }
  
  .nav-toggle:checked ~ ul {
    display: flex;
  }
  
  .nav li {
    width: 100%;
  }
  
  .nav a {
    display: block;
    width: 100%;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #eee;
  }
}

/* ===============================
   Section System (One-Page)
================================ */

section {
  scroll-margin-top: 80px;
}

.section {
  padding: clamp(3rem, 6vw, 6rem) 1rem;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* Section Varianten */
.section-light {
  background: #F0F6FC;
  color: #333;
  min-height: 80vh;
}

.section-dark {
  background: #B7C8DD;
  color: #000;
  min-height: 80vh;
}

.section-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('assets/images/start.svg') center/cover no-repeat;
  color: #000;
}

/* Text-Abstände */
.section h1 {
  margin-bottom: 1.5rem;
}

.section h2 {
  margin-bottom: 1.25rem;
}

.section h3 {
  margin-bottom: 1rem;
}

.section p {
  margin-bottom: 1rem;
}

.section ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.section li + li {
  margin-top: 0.5rem;
}

/* Animation */
.section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

.section:nth-child(1) { transition-delay: 0s; }
.section:nth-child(2) { transition-delay: 0.2s; }
.section:nth-child(3) { transition-delay: 0.4s; }

/* ===============================
   Services Grid
================================ */

.services-grid ul {
  list-style: none;
  padding: 0;
  margin: 3rem 0 0;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

.services-grid li {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.services-grid h3 {
  margin-top: 0;
}

/* ===============================
   Page Template (Unterseiten)
================================ */

.page-content {
  min-height: 70vh;
  padding: 2rem 0 4rem;
}

.page-content .section {
  opacity: 1;
  transform: translateY(0);
  min-height: auto;
  padding: 0;
}

.page-content .section-inner {
  max-width: 800px;
  margin: 0 auto;
}

.back-link {
  margin-top: 3rem;
  text-align: center;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #0077cc;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #005fa3;
}

/* ===============================
   Footer
================================ */

.site-footer {
  background: #0E84B7;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
}

.footer-content p {
  margin: 0.5rem 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}