/* ===========================================================
   Lohnzuschnitt.de – Modern Stylesheet
   Farbschema: blasses Blau
   Responsive (Mobile First)
   =========================================================== */

/* ---------- Reset & Basis ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Blasses Blau – Farbpalette */
  --c-bg:          #f4f8fc;   /* Sehr blasses Blau – Hintergrund */
  --c-bg-alt:      #e8f1f8;   /* Etwas dunkler – Sektionen */
  --c-primary:     #7fb1d4;   /* Blassblau – Akzent */
  --c-primary-dk:  #5a8fb5;   /* Hover/Dark */
  --c-primary-lt:  #c9def0;   /* Light – Karten */
  --c-text:        #243747;   /* Tiefes Petrol – Text */
  --c-text-soft:   #5a6b7a;   /* Gedämpfter Text */
  --c-white:       #ffffff;
  --c-border:      #d4e3ee;
  --c-success:     #6aab8e;
  --c-error:       #c97676;

  --shadow-sm:  0 1px 3px rgba(36, 55, 71, .06);
  --shadow-md:  0 4px 14px rgba(36, 55, 71, .08);
  --shadow-lg:  0 10px 30px rgba(36, 55, 71, .12);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --container: 1180px;

  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-head: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--c-primary-dk);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover,
a:focus {
  color: var(--c-text);
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--c-text);
  margin-bottom: .6em;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p { margin-bottom: 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* ---------- Skip-Link (Barrierefreiheit) ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-text);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 9999;
}
.skip-link:focus { left: 0; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 1.2rem;
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-weight: 700;
  color: var(--c-text);
  font-size: 1.15rem;
}

.brand:hover { text-decoration: none; }

.brand-logo {
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.brand-name { line-height: 1.1; }
.brand-name small {
  display: block;
  font-weight: 400;
  font-size: .75rem;
  color: var(--c-text-soft);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-text);
  position: relative;
  transition: transform .25s ease, top .25s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top:  7px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: .25rem;
  align-items: center;
}

.main-nav a {
  display: inline-block;
  padding: .55rem .9rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--c-text);
}

.main-nav a:hover,
.main-nav a.is-active {
  background: var(--c-primary-lt);
  color: var(--c-text);
  text-decoration: none;
}

.main-nav .cta {
  background: var(--c-primary);
  color: #fff;
  margin-left: .5rem;
}
.main-nav .cta:hover {
  background: var(--c-primary-dk);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--c-bg-alt) 0%, var(--c-bg) 100%);
  overflow: hidden;
  padding: 4rem 0 5rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60vw;
  height: 60vw;
  max-width: 600px;
  max-height: 600px;
  background: radial-gradient(circle, var(--c-primary-lt) 0%, transparent 65%);
  opacity: .65;
  z-index: 0;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 1fr; }
}

.hero-eyebrow {
  display: inline-block;
  background: var(--c-primary-lt);
  color: var(--c-primary-dk);
  padding: .35rem .8rem;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: .02em;
}

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

.hero-lead {
  font-size: 1.15rem;
  color: var(--c-text-soft);
  max-width: 38em;
  margin-bottom: 1.8rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-bottom: 2rem;
}

.hero-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  background: var(--c-primary-lt);
}

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

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

.btn-primary {
  background: var(--c-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--c-primary-dk);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--c-text);
  border-color: var(--c-primary);
}
.btn-outline:hover {
  background: var(--c-primary-lt);
  text-decoration: none;
}

/* ---------- Sections ---------- */
section {
  padding: 4rem 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.section-head p {
  color: var(--c-text-soft);
  font-size: 1.05rem;
}

.bg-alt { background: var(--c-bg-alt); }
.bg-white { background: var(--c-white); }

/* ---------- Karten ---------- */
.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .cards-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}

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

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--c-primary-lt);
  color: var(--c-primary-dk);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.card h3 { margin-bottom: .5rem; }

.card-link {
  display: inline-block;
  margin-top: .8rem;
  font-weight: 600;
}

/* ---------- USP-Liste ---------- */
.usp-list {
  list-style: none;
  display: grid;
  gap: .8rem;
  margin: 1.5rem 0;
}

.usp-list li {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding-left: 0;
}

.usp-list li::before {
  content: '✓';
  display: inline-flex;
  width: 24px;
  height: 24px;
  background: var(--c-primary-lt);
  color: var(--c-primary-dk);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ---------- Spezifikations-Tabelle ---------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.spec-table th,
.spec-table td {
  padding: 1rem 1.2rem;
  text-align: left;
  border-bottom: 1px solid var(--c-border);
}

.spec-table th {
  background: var(--c-bg-alt);
  font-weight: 600;
  width: 40%;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: 0; }

@media (max-width: 600px) {
  .spec-table th { width: 50%; }
  .spec-table th, .spec-table td { padding: .8rem; font-size: .95rem; }
}

/* ---------- Galerie ---------- */
.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.gallery figure {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--c-primary-lt);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform .35s ease;
}

.gallery figure:hover img { transform: scale(1.05); }

.gallery figcaption {
  padding: .8rem 1rem;
  font-size: .9rem;
  color: var(--c-text-soft);
  background: var(--c-white);
}

/* ---------- Formular ---------- */
.form {
  background: var(--c-white);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--c-border);
}

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

@media (min-width: 700px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; }
}

.field {
  display: flex;
  flex-direction: column;
}

.field label {
  font-weight: 600;
  margin-bottom: .4rem;
  font-size: .95rem;
}

.field .req { color: var(--c-error); }

.field input,
.field select,
.field textarea {
  font: inherit;
  padding: .8rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-bg);
  color: var(--c-text);
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}

.field textarea { resize: vertical; min-height: 140px; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px var(--c-primary-lt);
}

.field-hint {
  font-size: .85rem;
  color: var(--c-text-soft);
  margin-top: .35rem;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin: 1rem 0;
  font-size: .95rem;
  color: var(--c-text-soft);
}

.checkbox-row input { margin-top: .35rem; flex-shrink: 0; }

.form-success,
.form-error {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-weight: 500;
}
.form-success { background: #e6f4ec; color: #2f6b4d; border: 1px solid #b9dec9; }
.form-error   { background: #fbecec; color: #9a3a3a; border: 1px solid #f0c2c2; }

/* Honeypot Feld (vor Spam-Bots versteckt) */
.hp-field { position: absolute; left: -9999px; }

/* ---------- Kontaktblock ---------- */
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.3fr; }
}

.contact-info {
  background: var(--c-bg-alt);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.contact-info dl { display: grid; gap: 1.2rem; }
.contact-info dt { font-weight: 600; color: var(--c-text); margin-bottom: .15rem; }
.contact-info dd { color: var(--c-text-soft); }
.contact-info a { font-weight: 500; }

/* ---------- Cookie-Banner ---------- */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 1.2rem 1.4rem;
  z-index: 9000;
  max-width: 520px;
  margin-left: auto;
  display: none;
}

.cookie-banner.is-visible { display: block; }

.cookie-banner h4 { margin-bottom: .4rem; font-size: 1rem; }
.cookie-banner p  { font-size: .9rem; color: var(--c-text-soft); margin-bottom: .8rem; }

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.cookie-actions .btn { padding: .55rem 1rem; font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: auto;
  background: var(--c-text);
  color: #cdd8e2;
  padding: 3rem 0 1.2rem;
}

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

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

.site-footer h5 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: .9rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
}

.site-footer a {
  color: #cdd8e2;
  display: inline-block;
  padding: .15rem 0;
}
.site-footer a:hover { color: #fff; }

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 1.2rem;
  text-align: center;
  font-size: .85rem;
  color: #8d9ba8;
}

/* ---------- Tabelle Lieferadresse (kompakt) ---------- */
.contact-info address {
  font-style: normal;
  line-height: 1.7;
}

/* ---------- Mobile-Navigation ---------- */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--c-white);
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
  }
  .main-nav.is-open { max-height: 600px; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: .6rem 1rem 1rem;
    gap: .15rem;
  }
  .main-nav a { display: block; padding: .8rem 1rem; }
  .main-nav .cta { margin-left: 0; text-align: center; }
}

/* ---------- Hilfsklassen ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.lead { font-size: 1.15rem; color: var(--c-text-soft); }

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  html { scroll-behavior: auto; }
}
