/*
Theme Name: Ackermann Transporte
Theme URI: https://ackermanntransporte.de
Author: Ackermann Transporte GmbH
Author URI: https://ackermanntransporte.de
Description: Professionelles Theme für Ackermann Transporte – Container & Schüttguttransporte im Raum Hamburg.
Version: 1.0.0
License: Private
Text Domain: ackermann
*/

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

:root {
  --bg:       #0c0c0c;
  --bg-1:     #131313;
  --bg-2:     #1a1a1a;
  --bg-3:     #242424;
  --text:     #ffffff;
  --text-2:   rgba(255,255,255,0.62);
  --text-3:   rgba(255,255,255,0.32);
  --red:      #cc1818;
  --red-b:    #e02828;
  --red-d:    #9a1010;
  --border:   rgba(255,255,255,0.07);
  --border-2: rgba(255,255,255,0.12);
  --sans:     'Barlow', system-ui, sans-serif;
  --cond:     'Barlow Condensed', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: #0a0a0a;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 90px; transition: box-shadow 0.3s;
}

.nav-logo {
  font-family: var(--cond); font-weight: 800; font-size: 1.15rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text); text-decoration: none;
  display: flex; align-items: center; gap: 12px;
  padding: 6px 0;
}

.logo-mark { display: none; }

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

.nav-links a {
  color: var(--text-2); text-decoration: none; font-size: 0.86rem;
  font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: white; }

.nav-cta {
  background: var(--red) !important; color: white !important;
  padding: 0.45rem 1.2rem; border-radius: 3px; transition: background 0.2s !important;
}

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

/* ── Leistungen-Dropdown ── */
.nav-has-dropdown { position: relative; }
.nav-arrow { display: none; }
.nav-has-dropdown:hover .nav-arrow { transform: rotate(180deg); }
.nav-dropdown-toggle { display: none; } /* Desktop: Toggle unsichtbar – Hover reicht */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  list-style: none;
  min-width: 210px;
  z-index: 200;
  padding: 0.4rem 0;
}
.nav-dropdown li a {
  display: block;
  padding: 0.65rem 1.2rem;
  color: var(--text-2);
  font-size: 0.87rem;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav-dropdown li a:hover { color: white; background: rgba(255,255,255,0.05); }
.nav-has-dropdown:hover .nav-dropdown { display: block; }

/* Unsichtbare Brücke zwischen Nav-Link und Dropdown – verhindert, dass der Hover-State beim Überqueren des Abstands verloren geht */
.nav-has-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 16px; /* muss mindestens so groß sein wie der gap (12px) */
  background: transparent;
}

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}

.nav-burger span { display: block; width: 24px; height: 2px; background: white; border-radius: 2px; }

/* HERO */
.hero {
  min-height: 100vh; display: grid; grid-template-columns: 42% 58%;
  padding-top: 90px; position: relative; overflow: hidden;
}

.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px; pointer-events: none;
}

.hero-content {
  display: flex; flex-direction: column; justify-content: center;
  padding: 6rem 4rem 6rem 6rem; position: relative; z-index: 2;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--red-b);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.35rem 0.9rem; border-radius: 2px; border: 1px solid var(--red-d);
  margin-bottom: 2rem; width: fit-content;
}

.hero-badge::before {
  content: ''; width: 6px; height: 6px; background: var(--red); border-radius: 50%;
}

.hero h1 {
  font-family: var(--cond); font-weight: 800;
  font-size: clamp(3rem, 5vw, 5rem); line-height: 0.97;
  letter-spacing: -0.01em; text-transform: uppercase; color: white; margin-bottom: 1.8rem;
}

.hero h1 em { font-style: normal; color: var(--red-b); display: block; }

.hero-sub {
  font-size: 1rem; color: var(--text-2); line-height: 1.75;
  max-width: 420px; margin-bottom: 2.5rem;
}

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

.btn-primary {
  background: var(--red); color: white; text-decoration: none;
  padding: 0.9rem 2rem; border-radius: 3px; font-weight: 600;
  font-size: 0.92rem; letter-spacing: 0.05em; text-transform: uppercase;
  transition: background 0.2s, transform 0.15s; display: inline-block;
  font-family: var(--sans);
}

.btn-primary:hover { background: var(--red-b); transform: translateY(-2px); }

.btn-ghost {
  background: transparent; color: white; text-decoration: none;
  padding: 0.9rem 2rem; border-radius: 3px; font-weight: 600;
  font-size: 0.92rem; border: 1px solid var(--border-2);
  letter-spacing: 0.05em; text-transform: uppercase;
  transition: border-color 0.2s, background 0.2s; display: inline-block;
}

.btn-ghost:hover { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.04); }

.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 3.5rem;
  padding-top: 2.5rem; border-top: 1px solid var(--border);
}

.stat-item .num {
  font-family: var(--cond); font-size: 2.2rem; font-weight: 800;
  color: white; line-height: 1; letter-spacing: -0.02em;
}

.stat-item .num span { color: var(--red-b); }

.stat-item .lbl {
  font-size: 0.75rem; color: var(--text-3); margin-top: 4px;
  text-transform: uppercase; letter-spacing: 0.07em;
}

.hero-panel {
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden;
}

.hero-panel-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 60%;
  display: block;
}

.hero-panel-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.3) 50%,
    rgba(0,0,0,0.15) 100%
  );
  z-index: 1;
}

.hero-panel-stripe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 4px; background: var(--red);
}

.hero-panel-label {
  position: absolute; top: 3rem; right: -2.5rem;
  font-family: var(--cond); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.5);
  writing-mode: vertical-rl; transform: rotate(180deg); z-index: 2;
}

.hero-tags { position: relative; z-index: 2; padding: 3rem 2.5rem; display: flex; flex-direction: column; gap: 10px; }

.hero-tag {
  border: 1px solid var(--border); border-radius: 3px;
  padding: 0.9rem 1.25rem; display: flex; align-items: center; gap: 12px;
  font-family: var(--cond); font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2);
  transition: border-color 0.2s, color 0.2s, background 0.2s; cursor: default;
}

.hero-tag:hover { border-color: var(--red-d); color: white; background: rgba(204,24,24,0.07); }

.hero-tag-dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; flex-shrink: 0; }

/* SECTIONS */
section { padding: 6rem 0; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 2.5rem; }

.s-label {
  font-family: var(--cond); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--red-b);
  margin-bottom: 1rem; display: flex; align-items: center; gap: 10px;
}

.s-label::before { content: ''; width: 20px; height: 2px; background: var(--red); display: block; }

.s-title {
  font-family: var(--cond); font-size: clamp(2.2rem, 3.5vw, 3.2rem);
  font-weight: 800; text-transform: uppercase; letter-spacing: -0.01em;
  line-height: 1; color: white; margin-bottom: 1rem;
}

.s-intro { font-size: 1rem; color: var(--text-2); max-width: 480px; line-height: 1.75; }

/* SERVICES */
.services { background: var(--bg-1); }

.services-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 3rem; gap: 2rem;
}

.services-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 4px; overflow: hidden;
}

.service-card {
  background: var(--bg-1); padding: 2.5rem;
  display: flex; flex-direction: column; gap: 1.25rem;
  transition: background 0.25s; position: relative;
}

.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 3px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}

.service-card:hover { background: var(--bg-2); }
.service-card:hover::before { transform: scaleX(1); }

.svc-icon {
  width: 50px; height: 50px;
  background: rgba(204,24,24,0.1); border: 1px solid rgba(204,24,24,0.2);
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
}

.svc-icon svg {
  width: 22px; height: 22px; stroke: var(--red-b); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.service-card h3 {
  font-family: var(--cond); font-size: 1.6rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.02em; color: white;
}

.service-card p { color: var(--text-2); font-size: 0.96rem; line-height: 1.72; flex: 1; }

.svc-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }

.svc-list li {
  font-size: 0.9rem; color: var(--text-2);
  display: flex; align-items: flex-start; gap: 10px;
}

.svc-list li::before {
  content: ''; width: 14px; height: 14px; flex-shrink: 0; margin-top: 4px;
  background: var(--red); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' fill='none' d='M2.5 7l3 3 6-6'/%3E%3C/svg%3E");
  background-size: cover;
}

.svc-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--red-b); text-decoration: none; font-weight: 600;
  font-size: 0.86rem; letter-spacing: 0.07em; text-transform: uppercase;
  transition: gap 0.2s, color 0.2s; margin-top: auto;
}

.svc-link:hover { gap: 12px; color: white; }

/* ABOUT */
.about { background: var(--bg); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }

.about-visual {
  background: var(--bg-1); border: 1px solid var(--border); border-radius: 4px;
  aspect-ratio: 4/5; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

.about-stripe { position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: var(--red); }

.about-corner {
  position: absolute; top: 0; right: 0;
  width: 80px; height: 80px;
  border-top: 3px solid var(--red); border-right: 3px solid var(--red);
  border-radius: 0 4px 0 0;
}

.about-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 30px 30px;
}

.about-quote { position: relative; z-index: 2; padding: 2.5rem; text-align: center; }

.about-quote blockquote {
  font-family: var(--cond); font-size: 1.4rem; font-weight: 600;
  font-style: italic; color: white; line-height: 1.5; margin-bottom: 1.5rem;
}

.about-quote cite { font-size: 0.78rem; color: var(--text-3); font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; }

.about-content { display: flex; flex-direction: column; gap: 1.5rem; }

.about-content p { color: var(--text-2); font-size: 1rem; line-height: 1.78; }

.about-content strong { color: white; font-weight: 600; }

.about-highlight {
  border-left: 3px solid var(--red); padding: 1.1rem 1.4rem;
  background: rgba(204,24,24,0.07); border-radius: 0 3px 3px 0;
  font-size: 0.97rem; color: rgba(255,255,255,0.78); font-weight: 500; line-height: 1.65;
}

/* WERTE */
.values { background: var(--bg-1); }

.values-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 4px; overflow: hidden;
  margin-top: 3rem;
}

.value-card {
  background: var(--bg-1); padding: 2rem 1.5rem;
  position: relative; transition: background 0.2s;
}

.value-card:hover { background: var(--bg-2); }

.value-num {
  font-family: var(--cond); font-size: 3rem; font-weight: 800;
  color: var(--bg-3); line-height: 1; margin-bottom: 1.25rem; letter-spacing: -0.02em;
}

.value-card h4 {
  font-family: var(--cond); font-size: 1.05rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: white; margin-bottom: 0.6rem;
}

.value-card p { font-size: 0.88rem; color: var(--text-2); line-height: 1.65; }

.value-card::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--red); transition: width 0.3s;
}

.value-card:hover::after { width: 100%; }

/* KARRIERE */
.karriere-section { background: var(--bg); padding: 6rem 0; }

.karriere-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; margin-bottom: 4rem; }

.karriere-lead { font-size: 1rem; color: var(--text-2); line-height: 1.78; }

.karriere-stats { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }

.karriere-stat {
  background: var(--bg-1); padding: 1.4rem 1.8rem;
  display: flex; align-items: center; gap: 1.2rem;
}

.karriere-stat-num {
  font-family: var(--cond); font-size: 2rem; font-weight: 800;
  color: var(--red-b); line-height: 1; flex-shrink: 0; min-width: 60px;
}

.karriere-stat-lbl { font-size: 0.88rem; color: var(--text-2); line-height: 1.4; }

.benefits-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: 4px; overflow: hidden;
  margin-bottom: 4rem;
}

.benefit-card {
  background: var(--bg-1); padding: 2rem 1.75rem;
  transition: background 0.2s;
}

.benefit-card:hover { background: var(--bg-2); }

.benefit-icon {
  width: 44px; height: 44px;
  background: rgba(204,24,24,0.1); border: 1px solid rgba(204,24,24,0.2);
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}

.benefit-icon svg {
  width: 20px; height: 20px; stroke: var(--red-b); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.benefit-card h4 {
  font-family: var(--cond); font-size: 1rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: white; margin-bottom: 0.5rem;
}

.benefit-card p { font-size: 0.87rem; color: var(--text-2); line-height: 1.65; }

.stellen-label { font-family: var(--cond); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--red-b); margin-bottom: 1.2rem; display: flex; align-items: center; gap: 10px; }
.stellen-label::before { content: ''; width: 20px; height: 2px; background: var(--red); display: block; }

.stellen-grid { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 4rem; }

.stellen-card {
  background: var(--bg-1); padding: 2rem 2.5rem;
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 2rem;
  border-left: 3px solid transparent; transition: background 0.2s, border-color 0.2s;
}

.stellen-card:hover { background: var(--bg-2); border-left-color: var(--red); }

.stellen-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--red-b); border: 1px solid var(--red-d); border-radius: 2px;
  padding: 0.2rem 0.6rem; margin-bottom: 0.6rem; width: fit-content;
}

.stellen-card h3 {
  font-family: var(--cond); font-size: 1.4rem; font-weight: 800;
  text-transform: uppercase; color: white; margin-bottom: 0.5rem;
}

.stellen-meta { display: flex; gap: 1.2rem; flex-wrap: wrap; }

.stellen-tag {
  font-size: 0.78rem; color: var(--text-3);
  display: flex; align-items: center; gap: 5px;
}

.stellen-tag svg { width: 13px; height: 13px; stroke: var(--text-3); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.bewerbung-wrap {
  background: var(--bg-1); border: 1px solid var(--border); border-radius: 4px;
  padding: 3rem; position: relative; overflow: hidden;
}

.bewerbung-wrap::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--red);
}

.bewerbung-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.bewerbung-full { grid-column: 1 / -1; }

/* KONTAKT */
.contact { background: var(--bg-1); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; margin-top: 3rem; }

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }

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

.form-group { display: flex; flex-direction: column; gap: 0.45rem; }

.form-group label {
  font-size: 0.76rem; font-weight: 700; color: var(--text-3);
  letter-spacing: 0.1em; text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-2); border: 1px solid var(--border-2);
  border-radius: 3px; padding: 0.8rem 1rem;
  font-family: var(--sans); font-size: 0.97rem; color: white;
  transition: border-color 0.2s; outline: none; width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }

.form-group select option { background: var(--bg-2); color: white; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); }

.form-group textarea { resize: vertical; min-height: 120px; }

.form-note { font-size: 0.8rem; color: var(--text-3); line-height: 1.55; }

.contact-info { display: flex; flex-direction: column; gap: 1.75rem; }

.ci-title {
  font-family: var(--cond); font-size: 1.3rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; color: white; margin-bottom: 0.25rem;
}

.contact-item { display: flex; gap: 1rem; align-items: flex-start; }

.ci-icon {
  width: 42px; height: 42px;
  background: rgba(204,24,24,0.1); border: 1px solid rgba(204,24,24,0.2);
  border-radius: 4px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.ci-icon svg {
  width: 18px; height: 18px; stroke: var(--red-b); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.ci-lbl { font-size: 0.74rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.ci-val { font-size: 0.97rem; color: white; font-weight: 500; margin-top: 2px; text-decoration: none; }
a.ci-val { color: var(--red-b); }
a.ci-val:hover { color: white; }

.quick-contact {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 4px; padding: 1.5rem;
}

.qc-label { font-size: 0.72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; margin-bottom: 0.9rem; }

/* FOOTER */
footer {
  background: #080808; border-top: 1px solid var(--border);
  padding: 1.75rem 2.5rem; font-size: 0.82rem; color: var(--text-3);
}

.footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 1rem; flex-wrap: wrap;
}

.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--cond); font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3);
}

.footer-dot { width: 6px; height: 6px; background: var(--red); border-radius: 50%; }

.footer-links { display: flex; gap: 1.5rem; list-style: none; }
.footer-links a { color: var(--text-3); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: white; }

/* ANIMATIONS */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* RESPONSIVE */

/* =============================================
   RESPONSIVE — iPad / Tablet (≤ 1024px)
   ============================================= */
@media (max-width: 1024px) {

  /* HERO — zweispaltig aber enger */
  .hero { grid-template-columns: 50% 50%; }
  .hero-content { padding: 5rem 2.5rem 4rem 3rem; }
  .hero h1 { font-size: clamp(2.8rem, 5vw, 4rem); }

  /* LEISTUNGEN Inline-Grids (2-col auf Unterseiten) */
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }

  .values-grid { grid-template-columns: 1fr 1fr; }

  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { aspect-ratio: 16/9; }

  /* KARRIERE */
  .karriere-intro { grid-template-columns: 1fr; gap: 2.5rem; }
  .stellen-card { grid-template-columns: 1fr; gap: 1.5rem; }
  .stellen-card .btn-primary,
  .stellen-card .btn-ghost { width: fit-content; }

  /* CTA-Boxen auf Unterseiten */
  [style*="justify-content:space-between"] { flex-direction: column !important; align-items: flex-start !important; }
}

/* =============================================
   RESPONSIVE — Tablet & Burger-Nav (≤ 960px)
   ============================================= */
@media (max-width: 960px) {

  /* NAV + BURGER */
  .nav-burger { display: flex !important; }
  .nav-links   { display: none; }

  .nav-links.open {
    display: block;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(10,10,10,0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 0.5rem 0;
    z-index: 99;
    /* Scrollbar bei vielen Nav-Items */
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open li { display: block; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .nav-links.open a  { display: block; padding: 0.9rem 2rem; font-size: 0.95rem; }

  /* Mobile Dropdown-Toggle */
  .nav-links.open .nav-has-dropdown { position: relative; }
  .nav-links.open .nav-has-dropdown > a { padding-right: 3.5rem; }
  .nav-dropdown-toggle {
    display: flex;
    position: absolute;
    right: 0; top: 0;
    width: 3rem; height: 100%;
    align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
  }
  .nav-dropdown-toggle span {
    display: block;
    width: 10px; height: 10px;
    border-right: 2px solid rgba(255,255,255,0.5);
    border-bottom: 2px solid rgba(255,255,255,0.5);
    transform: rotate(45deg);
    transition: transform 0.25s;
  }
  .nav-dropdown-toggle[aria-expanded="true"] span { transform: rotate(-135deg); }

  /* Dropdown eingeklappt by default auf Mobile */
  .nav-links.open .nav-dropdown { display: none; }
  .nav-links.open .nav-dropdown.open {
    display: block;
    position: static;
    transform: none;
    background: rgba(255,255,255,0.04);
    border: none;
    border-radius: 0;
    padding: 0;
    min-width: unset;
  }
  .nav-links.open .nav-dropdown.open li a {
    padding: 0.75rem 2rem 0.75rem 3rem;
    font-size: 0.85rem;
    border-bottom: none;
  }
  .nav-links.open .nav-cta {
    display: block;
    margin: 0.75rem 1.5rem;
    border-radius: 3px;
    text-align: center;
    padding: 0.8rem 1.5rem !important;
  }
  nav { padding: 0 1.5rem; }

  /* HERO */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    display: flex;
    flex-direction: column;
    padding-top: 90px; /* Platz für fixen Header, Bild schließt direkt darunter an */
  }
  .hero-panel {
    order: -1; /* Bild nach ganz oben – direkt unter den Header */
    border-left: none;
    border-bottom: 1px solid var(--border);
    border-top: none;
    height: 300px;
  }
  .hero-content { padding: 3rem 1.5rem 3.5rem; }
  .hero h1 { font-size: clamp(2.6rem, 7vw, 4rem); }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
  .hero-actions { flex-direction: column; }
  .hero-actions a { text-align: center; }

  /* SECTIONS */
  section { padding: 4rem 0; }
  .container { padding: 0 1.5rem; }

  /* SERVICES */
  .services-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .services-grid { grid-template-columns: 1fr; }

  /* ABOUT */
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-visual { aspect-ratio: 16/9; }

  /* WERTE */
  .values-grid { grid-template-columns: 1fr 1fr; }

  /* KARRIERE */
  .karriere-intro { grid-template-columns: 1fr; gap: 2.5rem; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .stellen-card { grid-template-columns: 1fr; gap: 1.2rem; }
  .stellen-card .btn-primary,
  .stellen-card .btn-ghost { width: fit-content; }
  .bewerbung-wrap { padding: 2rem; }

  /* KONTAKT */
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }

  /* FOOTER */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 1rem; }

  /* USP Streifen */
  [style*="grid-template-columns:repeat(4,1fr)"] { grid-template-columns: repeat(2,1fr) !important; }
  [style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: repeat(2,1fr) !important; }
}

/* =============================================
   RESPONSIVE — iPhone (≤ 600px)
   ============================================= */
@media (max-width: 600px) {

  /* NAV */
  nav { height: 56px; padding: 0 1rem; }
  .nav-links.open { top: 56px; max-height: calc(100vh - 56px); }
  .nav-logo img { height: 56px !important; }

  /* Verhindert horizontales Scrollen */
  body { overflow-x: hidden; }

  /* HERO */
  .hero { padding-top: 56px; }
  .hero-content { padding: 2.5rem 1rem 3rem; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .hero-sub { font-size: 0.95rem; }
  .hero-stats { gap: 1rem; }
  .stat-item .num { font-size: 1.8rem; }

  /* BUTTONS — volle Breite auf kleinen Displays */
  .btn-primary, .btn-ghost {
    padding: 1rem 1.5rem;
    width: 100%;
    text-align: center;
    display: block;
    box-sizing: border-box;
  }
  /* Ausnahme: Buttons in Karten nicht volle Breite */
  .stellen-card .btn-primary,
  .stellen-card .btn-ghost,
  .contact-info .btn-primary { width: auto; display: inline-block; }

  /* SECTIONS */
  section { padding: 3rem 0; }
  .container { padding: 0 1rem; }
  .s-title { font-size: clamp(1.8rem, 7vw, 2.5rem); }

  /* SERVICE CARDS */
  .service-card { padding: 1.75rem; }
  .values-grid { grid-template-columns: 1fr; }
  .value-card { padding: 1.5rem; }

  /* KARRIERE */
  .benefits-grid { grid-template-columns: 1fr; }
  .benefit-card { padding: 1.5rem; }
  .karriere-stat { padding: 1rem 1.2rem; }
  .stellen-card { padding: 1.5rem; }
  .stellen-card .btn-primary,
  .stellen-card .btn-ghost { width: auto; }
  .bewerbung-wrap { padding: 1.5rem; }
  .bewerbung-wrap h3 { font-size: 1.4rem; }

  /* WhatsApp-Button in Stellenanzeigen */
  .stellen-card [href*="wa.me"] { width: auto !important; }

  /* FORMULAR */
  .form-row { grid-template-columns: 1fr; }
  .contact-info { gap: 1.25rem; }
  .quick-contact { padding: 1rem; }

  /* ABOUT */
  .about-quote blockquote { font-size: 1.1rem; }
  .about-highlight { padding: 0.9rem 1rem; font-size: 0.9rem; }

  /* LEISTUNGEN Unterseiten — Inline-Grids */
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  [style*="display:grid;grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }

  /* CTA-Boxen auf Unterseiten */
  [style*="justify-content:space-between"] { flex-direction: column !important; align-items: flex-start !important; }
  [style*="justify-content:space-between"] .btn-primary { width: auto !important; }

  /* IMPRESSUM Grid */
  [style*="grid-template-columns:1fr 1fr;gap:2rem"] { grid-template-columns: 1fr !important; gap: 1.5rem !important; }

  /* FOOTER */
  .footer-inner { gap: 0.75rem; }
  .footer-links { flex-wrap: wrap; gap: 1rem; }
  .footer-brand img { height: 22px !important; }

  /* USP Streifen */
  [style*="grid-template-columns:repeat(4,1fr)"] { grid-template-columns: 1fr 1fr !important; gap: 1.5rem !important; }
  [style*="grid-template-columns:repeat(3,1fr)"] { grid-template-columns: 1fr !important; }
}

/* =============================================
   RESPONSIVE — iPhone SE / kleines Smartphone (≤ 390px)
   ============================================= */
@media (max-width: 390px) {
  .hero h1 { font-size: 2rem; }
  .hero-stats { flex-direction: column; gap: 0.8rem; }
  .s-title { font-size: 1.7rem; }
  .stellen-meta { flex-direction: column; gap: 0.4rem; }
  nav { padding: 0 0.75rem; }
  .container { padding: 0 0.875rem; }

  /* Karriere WhatsApp + Bewerben nebeneinander */
  .stellen-card > div:last-child { flex-direction: column; }
  .stellen-card [href*="wa.me"] { justify-content: center; }
}

/* =============================================
   iOS Safari — spezifische Fixes
   ============================================= */

/* Verhindert Auto-Zoom bei Input-Focus auf iOS (font-size muss ≥ 16px sein) */
@supports (-webkit-touch-callout: none) {
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }

  /* Safe Area für iPhone mit Notch / Dynamic Island */
  nav {
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
  }

  footer {
    padding-bottom: max(1.75rem, env(safe-area-inset-bottom));
  }
}

@media (max-width: 600px) {
  @supports (-webkit-touch-callout: none) {
    nav {
      padding-left: max(1rem, env(safe-area-inset-left));
      padding-right: max(1rem, env(safe-area-inset-right));
    }
  }
}
