/* =============================================
   Motorsägenausbildung Lüdinghausen e.V.
   Gemeinsames Stylesheet
   ============================================= */

:root {
  --red: #D32F2F;
  --red-dark: #B71C1C;
  --red-light: #EF5350;
  --dark: #1C1C1C;
  --dark-mid: #2E2E2E;
  --gray: #6B6B6B;
  --gray-light: #E8E8E8;
  --bg: #F5F5F5;
  --white: #FFFFFF;
  --shadow: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --radius: 8px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

/* Schrift: System-Font-Stack – kein externer Request, 100% DSGVO-konform */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  font-size: 16px;
}

a {
  color: var(--red);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--red-dark);
}

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

/* ─── TYPOGRAPHY ─────────────────────────────── */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.5rem;
}

/* ─── LAYOUT ─────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* ─── BUTTONS ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(211,47,47,0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--dark);
}

.btn-outline-dark {
  background: transparent;
  color: var(--red);
  border: 2px solid var(--red);
}

.btn-outline-dark:hover {
  background: var(--red);
  color: var(--white);
}

/* ─── NAVIGATION ─────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(28, 28, 28, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: box-shadow var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo img {
  height: 58px;
  width: 58px;
  object-fit: contain;
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 0 2px rgba(211,47,47,0.5);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
}

.nav-logo-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.nav-logo-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.2;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

.nav-cta {
  background: var(--red) !important;
  color: var(--white) !important;
  padding: 0.5rem 1.1rem !important;
}

.nav-cta:hover {
  background: var(--red-dark) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
  border-radius: 2px;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--dark);
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu a {
  color: rgba(255,255,255,0.8);
  padding: 0.75rem 0;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.mobile-menu a:last-child {
  border-bottom: none;
  color: var(--red);
}

/* ─── HERO ───────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 70px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(28,28,28,0.55) 0%,
    rgba(28,28,28,0.35) 55%,
    rgba(211,47,47,0.12) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(211,47,47,0.2);
  border: 1px solid rgba(211,47,47,0.5);
  color: #EF9A9A;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}

.hero p {
  color: rgba(255,255,255,0.9);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 500px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}

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

/* ─── CARDS & SECTIONS ───────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.card-body {
  padding: 1.75rem;
}

/* ─── INFO BOXES ─────────────────────────────── */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.info-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--red);
}

.info-box-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.info-box h3 {
  margin-bottom: 0.5rem;
}

.info-box p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* ─── PACKAGES TABLE ─────────────────────────── */
.packages-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.packages-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  min-width: 720px;
}

.packages-table thead th {
  background: var(--dark);
  color: var(--white);
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1rem 1.25rem;
}

.packages-table tbody td {
  padding: 1.25rem;
  border-bottom: 1px solid var(--gray-light);
  font-size: 0.92rem;
  color: var(--dark);
  vertical-align: top;
}

.packages-table tbody td:nth-child(2) {
  color: var(--gray);
  line-height: 1.6;
}

.packages-table tbody tr:last-child td {
  border-bottom: none;
}

.packages-table tbody tr:hover {
  background: var(--bg);
}

.packages-table tbody td:first-child {
  border-left: 4px solid var(--red);
}

@media (max-width: 768px) {
  .packages-table-wrap {
    box-shadow: none;
  }

  .packages-table thead {
    display: none;
  }

  .packages-table, .packages-table tbody, .packages-table tr, .packages-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .packages-table tr {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
    padding: 0.5rem 0;
  }

  .packages-table td {
    border-bottom: none;
    padding: 0.5rem 1.25rem;
  }

  .packages-table td:first-child {
    border-left: none;
    border-top: 4px solid var(--red);
    border-radius: var(--radius) var(--radius) 0 0;
    font-size: 1rem;
  }

  .packages-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 0.2rem;
  }

  .packages-table td:first-child::before {
    display: none;
  }
}

/* ─── ABOUT SECTION ──────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-image img,
.about-image video {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.about-text h2 {
  margin-bottom: 1rem;
}

.about-text p {
  color: var(--gray);
  margin-bottom: 1rem;
}

.about-text p:last-of-type {
  margin-bottom: 1.5rem;
}

/* ─── CONTACT MODAL ──────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: 12px;
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(24px) scale(0.97);
  transition: transform 0.3s ease;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}

.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 1.75rem 1.75rem 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.modal-header h2 {
  font-size: 1.4rem;
}

.modal-header p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-top: 0.25rem;
}

.modal-close {
  background: var(--gray-light);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--gray);
  transition: all var(--transition);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--red);
  color: var(--white);
}

.modal-body {
  padding: 1.5rem 1.75rem 1.75rem;
}

/* ─── FORM ───────────────────────────────────── */
.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--dark);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--white);
  color: var(--dark);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(211,47,47,0.12);
}

textarea {
  resize: vertical;
  min-height: 130px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1rem;
}

.form-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--red);
  cursor: pointer;
}

.form-check label {
  margin: 0;
  font-size: 0.83rem;
  font-weight: 400;
  color: var(--gray);
  cursor: pointer;
}

.form-check label a {
  color: var(--red);
}

.form-submit {
  margin-top: 1.25rem;
}

.form-submit .btn {
  width: 100%;
  justify-content: center;
  padding: 1rem;
  font-size: 1rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 0.75rem;
  text-align: center;
}

/* ─── VIDEO EMBED ─────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
}

.video-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--dark);
}

.video-embed iframe,
.video-embed video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-card-body {
  padding: 1.25rem;
}

.video-card-body h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.video-card-body p {
  color: var(--gray);
  font-size: 0.88rem;
}

/* ─── BLOG ───────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.blog-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.blog-card-img {
  height: 200px;
  overflow: hidden;
}

.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-img img {
  transform: scale(1.04);
}

.blog-card-img-placeholder {
  height: 200px;
  background: linear-gradient(135deg, var(--dark-mid), var(--dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.75rem;
}

.blog-date {
  font-size: 0.8rem;
  color: var(--gray);
}

.blog-tag {
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(211,47,47,0.1);
  color: var(--red);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.blog-card-body h3 {
  margin-bottom: 0.6rem;
  font-size: 1.1rem;
}

.blog-card-body p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.1rem;
}

/* ─── PAGE HERO (inner pages) ─────────────────── */
.page-hero {
  background: var(--dark);
  padding: 8rem 0 4rem;
  text-align: center;
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto;
}

/* ─── FOOTER ─────────────────────────────────── */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand img {
  height: 56px;
  width: 56px;
  object-fit: contain;
  background: white;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.65;
  max-width: 280px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

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

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

.footer-col ul a {
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: var(--white);
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 1.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.83rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.55);
}

.footer-bottom a:hover {
  color: var(--white);
}

/* ─── LEGAL CONTENT ──────────────────────────── */
.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.legal-content h2 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--dark);
}

.legal-content h3 {
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.legal-content p, .legal-content li {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.legal-content ul, .legal-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  margin-bottom: 0.35rem;
}

.legal-placeholder {
  background: #FFF3E0;
  border: 1.5px dashed #FF9800;
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  color: #E65100;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* ─── YOUTUBE ZWEI-KLICK-FASSADE ─────────────── */
.yt-facade {
  position: relative;
  cursor: pointer;
  background: #000;
}

.yt-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.yt-facade:hover .yt-thumb {
  opacity: 0.7;
}

.yt-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  background: none;
  border: none;
  cursor: pointer;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
  transition: transform 0.2s;
  z-index: 2;
}

.yt-facade:hover .yt-play-btn {
  transform: translate(-50%, -60%) scale(1.1);
}

.yt-consent-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.75);
  color: rgba(255,255,255,0.75);
  font-size: 0.72rem;
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  z-index: 2;
  line-height: 1.4;
}

.yt-consent-bar a {
  color: #90CAF9;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── UTILITY ─────────────────────────────────── */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.bg-dark { background: var(--dark); }
.bg-white { background: var(--white); }
.text-muted { color: var(--gray); }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
