/* ===========================
   Farben & Reset
   =========================== */
:root {
  --primary: #1e2a38;   /* Dunkelblau */
  --secondary: #c6a664; /* Gold */
  --light: #f5f5f5;
  --text: #333;
}
/* merriweather-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Merriweather';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/merriweather-v32-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/montserrat-v30-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: #fff;
  overflow-x: hidden;  /* WICHTIG: keine horizontale Scrollbar */
}

h1,h2,h3,p,ul { margin:0; padding:0; }
ul { list-style: none; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

h1,h2,h3,h4,h5 {
  font-family: 'Merriweather', sans-serif;
}

p,a,li,span,blockquote {
  font-family: 'Montserrat' sans-serif;
}

/* ===========================
   Header
   =========================== */
.header {
  background: var(--primary);
  color: white;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img { width: 140px; }

.nav ul {
  display: flex;
  flex-wrap: wrap; /* Verhindert Überlauf */
  gap: 1rem;
}

.nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color .3s;
  font-size: .95rem;
}

.nav a::after {
  content:"";
  position:absolute;
  left:0;
  bottom:-5px;
  width:0;
  height:2px;
  background: var(--secondary);
  transition: width .3s;
}

.nav a:hover { color: var(--secondary); }
.nav a:hover::after { width:100%; }

.cta-btn {
  background: var(--secondary);
  color:#fff;
  padding:.5rem 1rem;
  border-radius:5px;
  font-weight: bold;
  text-decoration:none;
  font-size:.9rem;
}

/* ===========================
   Hero
   =========================== */
.hero {
  min-height: 100vh; /* statt height → sicherer */
  background: linear-gradient(rgba(30,42,56,.7), rgba(30,42,56,.7)),
              url('../img/hero-law.jpg') center/cover no-repeat;
  color:white;
  text-align:center;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:2rem 1rem;
}

.hero h1 { font-size:2.4rem; margin-bottom:1rem; }
.hero p  { font-size:1.05rem; margin-bottom:1.5rem; }

.hero .btn {
  background: var(--secondary);
  color:#fff;
  padding:.7rem 1.4rem;
  border-radius:5px;
  text-decoration:none;
  font-weight:bold;
  transition:background .3s;
}

.hero .btn:hover { background:#b08d44; }

/* ===========================
   Sektionen (Basis)
   =========================== */
section {
  width: 100%;
  padding: 3rem 1rem;
  scroll-margin-top: 80px;
}

.container h2 {
  color: var(--secondary);
  text-transform: uppercase;
  font-size:1.8rem;
  margin-bottom:1.2rem;
  text-align:center;
}

/* ===========================
   Über uns
   =========================== */
.about { background: var(--light); }

.about-grid {
  display:grid;
  grid-template-columns: 1fr;
  gap:1.5rem;
}

.about-values {
  display:grid;
  grid-template-columns: 1fr;
  gap:1rem;
  margin-top:1.5rem;
}

.about-values div {
  background:white;
  padding:1rem;
  border-radius:8px;
  box-shadow:0 2px 6px rgba(0,0,0,.1);
}

.about-img img { width:100%; border-radius:8px; }

.timeline {
  margin-top:1rem;
  background:white;
  padding:1rem;
  border-radius:8px;
  box-shadow:0 2px 6px rgba(0,0,0,.1);
}

/* ===========================
   Services
   =========================== */
.services { background:linear-gradient(to bottom,#fff,#f5f5f5); }

.service-grid {
  display:grid;
  grid-template-columns: 1fr;
  gap:1.5rem;
}

.service-card {
  background:white;
  padding:1.5rem;
  border-radius:8px;
  box-shadow:0 3px 10px rgba(0,0,0,.1);
  transition:transform .3s;
}

.service-card:hover { transform:translateY(-5px); }

.service-card h3 { color:var(--primary); margin-bottom:.5rem; }
.service-card ul { padding-left:1.2rem; list-style:disc; }

/* ===========================
   Team
   =========================== */
.team {
  background: var(--primary);
  color:white;
  text-align:center;
}

.team-grid {
  display:grid;
  grid-template-columns: 1fr;
  gap:1.5rem;
  margin-top:2rem;
}

.team-card {
  background:rgba(255,255,255,.05);
  border-radius:10px;
  padding:1.5rem;
  transition:transform .3s;
}

.team-card:hover { transform:translateY(-5px); }

.team-card img {
  width:100%;
  max-width:200px;
  height:260px;
  object-fit:cover;
  border-radius:50%/35%;
  border:3px solid var(--secondary);
  margin-bottom:1rem;
}

.team-card h3 { color:var(--secondary); margin-bottom:.3rem; }

/* ===========================
   Kontakt
   =========================== */
.contact {
  background:linear-gradient(rgba(30,42,56,.85),rgba(30,42,56,.85)),
              url('../img/contact-bg.jpg') center/cover no-repeat;
  color:white;
}

.contact-flex {
  display:grid;
  grid-template-columns: 1fr;
  gap:1.5rem;
  margin-top:2rem;
}

.contact-form {
  background:white;
  padding:1.5rem;
  border-radius:8px;
  color:black;
}

.contact-form input,
.contact-form textarea {
  width:100%;
  padding:.75rem;
  border:1px solid #ccc;
  border-radius:5px;
}

.contact-form button {
  margin-top:1rem;
  background:var(--primary);
  color:white;
  padding:.8rem;
  border:none;
  border-radius:5px;
  font-weight:bold;
  cursor:pointer;
  transition:background .3s;
}
.contact-details p a {
  color:var(--secondary);
  /* text-decoration:none; */
}
.contact-form button:hover { background:var(--secondary); }

.map {
  margin-top:1.5rem;
  border-radius:8px;
  overflow:hidden;
}

/* ===========================
   Footer
   =========================== */
.footer {
  background: var(--primary);
  color:white;
  text-align:center;
  padding:1rem;
}

/* ===========================
   MEDIA QUERIES
   =========================== */
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
  .about-values { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: repeat(2,1fr); }
  .team-grid {
    grid-template-columns: repeat(4, 1fr);}
  .contact-flex { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 992px) {
  .about-values { grid-template-columns: repeat(3,1fr); }
  .service-grid { grid-template-columns: repeat(3,1fr); }
  .team-grid { grid-template-columns: repeat(3,1fr); }
}

@media (min-width: 1200px) {
  .hero h1 { font-size:3rem; }
  .hero p  { font-size:1.2rem; }
}
/* Burger Button */
.menu-toggle {
  display: none;
}
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}

/* Navigation Standard */
.nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}
.nav {
  transition: all 0.3s ease;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .burger {
    display: flex; /* Burger sichtbar */
  }

  .nav {
    position: absolute;
    top: 90px;
    right: 0;
    width: 220px;
    background: var(--primary);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    border-left: 3px solid var(--secondary);
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
  }

  .nav li {
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav a {
    display: block;
    padding: 1rem;
    color: white;
  }

  /* Wenn angehakt → Menü sichtbar */
  .menu-toggle:checked ~ .nav {
    transform: translateX(0);
  }

  /* Burger Animation */
    .menu-toggle:checked + .burger span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle:checked + .burger span:nth-child(2) {
    opacity: 0;
    }
    .menu-toggle:checked + .burger span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    }

}
