/* ================================================
   style.css – Dirk Stoye Internationale Kühltransporte
   ================================================ */

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

:root {
  --c1: #0f1117;
  --c2: #f7f6f3;
  --c3: #e8e6e0;
  --c4: #6b6b6b;
  --c5: #1a1a2e;
  --accent: #2563eb;
  --font-head: 'Playfair Display', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-brand: 'Space Grotesk', sans-serif;

  /* HERO-BILD HIER ÄNDERN */
  --hero-bg: url('../images/hero/hero.jpg'); 
  /* Fallback falls Bild fehlt: */
  --hero-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--c2);
  color: var(--c1);
  line-height: 1.7;
  font-size: 16px;
}

/* ---------- Navigation ---------- */
nav {
  position: sticky;
  top: 0;
  background: rgba(247, 246, 243, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--c3);
  z-index: 1000; /* Höher als Hero */
  padding: 0 2.5rem;
}

nav .inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

nav .logo {
  font-family: var(--font-brand);
  font-size: 19px;
  letter-spacing: -0.3px;
  font-weight: 700;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav ul li a {
  font-size: 14px;
  color: var(--c4);
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
}

nav ul li a:hover, 
nav ul li a.active {
  color: var(--c1);
  border-bottom: 2px solid var(--accent);
}

/* Hamburger-Button (nur mobil sichtbar) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--c1);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero Bereich ---------- */
.hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  background: var(--hero-gradient);
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 2rem;
}

.hero-title {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(28px, 5vw, 52px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  max-width: 800px;
  margin: 0 auto;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(15px, 2vw, 18px);
  color: rgba(255, 255, 255, 0.9);
  margin-top: 1rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

/* ---------- Layout & Sektionen ---------- */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 2.5rem;
}

section {
  margin-bottom: 5rem;
  scroll-margin-top: 100px;
}

section h2 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--c3);
}

/* Karten & Grid */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.card {
  background: #fff;
  border: 1px solid var(--c3);
  border-radius: 12px;
  padding: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.05);
  border-color: var(--accent);
}

.card-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.25rem;
}

/* ---------- Dokumente-Teaser ---------- */
.docshare-teaser-card {
  background: #fff;
  border: 1px solid var(--c3);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background: #1d4ed8;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.team-card {
  background: #fff;
  border: 1px solid var(--c3);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
}

.team-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 3px solid var(--c2);
}

/* ---------- Cookie Banner ---------- */
.cookie-overlay {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  max-width: 550px;
  background: #ffffff;
  box-shadow: 0 15px 50px rgba(0,0,0,0.2);
  border-radius: 15px;
  z-index: 10000;
  padding: 25px;
  border: 1px solid #eee;
  transition: opacity 0.4s ease, visibility 0.4s;
}

.cookie-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn-accept, .btn-essential {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-body);
}

.btn-accept { background: var(--c1); color: white; }
.btn-essential { background: var(--c3); color: var(--c1); }

/* ---------- Footer ---------- */
footer {
  background: #fff;
  border-top: 1px solid var(--c3);
  padding: 3rem 1rem;
  text-align: center;
  font-size: 14px;
}

footer a {
  color: var(--c4);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; }
  .hero { height: 45vh; }

  nav .inner {
    height: 64px;
    padding: 0;
    flex-direction: row;
    justify-content: space-between;
  }

  .nav-toggle { display: flex; }

  nav ul#nav-menu {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--c3);
    padding: 0.5rem 0 1rem;
  }

  nav ul#nav-menu.open {
    display: flex;
  }

  nav ul#nav-menu li a {
    display: block;
    padding: 0.75rem 0;
  }
}
/* ============================================
   DocShare-Modul – ausgelagert aus index.html
   ============================================ */
    /* ── DocShare – integriert in das bestehende Design ──────── */

    /* Sektion nutzt vorhandene section-Stile aus style.css.
       Nur modulspezifische Ergänzungen stehen hier. */

    .ds-intro {
      color: var(--c4);
      font-size: 0.95rem;
      margin-top: -1rem;
      margin-bottom: 2rem;
    }

    /* Karte – greift die .card-Optik aus style.css auf */
    .ds-card {
      background: #fff;
      border: 1px solid var(--c3);
      border-radius: 12px;
      overflow: hidden;
    }

    /* Topbar */
    .ds-topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 13px 20px;
      border-bottom: 1px solid var(--c3);
      background: #fff;
    }
    .ds-logo { display: flex; align-items: center; gap: 9px; }
    .ds-logo-icon {
      width: 30px; height: 30px;
      background: #dbeafe; /* blau-hell passend zu --accent */
      border-radius: 8px;
      display: flex; align-items: center; justify-content: center;
    }
    .ds-logo-icon svg { width: 15px; height: 15px; stroke: var(--accent); fill: none; stroke-width: 2; }
    .ds-logo-name { font-family: var(--font-head); font-size: 15px; color: var(--c1); }
    .ds-topbar-right { display: flex; align-items: center; gap: 10px; }

    /* Badges */
    .ds-badge { font-size: 11px; font-weight: 500; padding: 3px 9px; border-radius: 20px; font-family: var(--font-body); }
    .ds-badge-admin { background: #dbeafe; color: #1d4ed8; }
    .ds-badge-user  { background: var(--c3); color: var(--c4); }

    .ds-avatar {
      width: 28px; height: 28px; border-radius: 50%;
      background: #dbeafe; color: #1d4ed8;
      font-size: 11px; font-weight: 500;
      display: flex; align-items: center; justify-content: center;
      font-family: var(--font-body);
    }
    .ds-btn-sm {
      font-size: 12px; padding: 5px 11px;
      border: 1px solid var(--c3); border-radius: 8px;
      background: transparent; color: var(--c4); cursor: pointer;
      font-family: var(--font-body);
    }
    .ds-btn-sm:hover { background: var(--c2); color: var(--c1); }

    /* Body des Moduls */
    .ds-body { padding: 20px; }

    /* Hinweis-Banner */
    .ds-notice {
      display: flex; align-items: center; gap: 10px;
      padding: 10px 14px;
      background: #fefce8; border: 1px solid #fde047;
      border-radius: 8px; margin-bottom: 16px;
      font-size: 12px; color: #854d0e;
    }
    .ds-notice svg { width: 14px; height: 14px; stroke: #854d0e; fill: none; stroke-width: 2; flex-shrink: 0; }
    .ds-notice a { color: var(--accent); font-weight: 500; text-decoration: underline; cursor: pointer; }

    /* Statistik-Kacheln (nur Admin) */
    .ds-stats-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px; margin-bottom: 18px;
    }
    .ds-stat {
      background: var(--c2);
      border: 1px solid var(--c3);
      border-radius: 10px; padding: 12px 14px;
    }
    .ds-stat-label { font-size: 11px; color: var(--c4); margin-bottom: 4px; }
    .ds-stat-val { font-size: 22px; font-weight: 500; color: var(--c1); font-family: var(--font-head); }

    /* Toolbar */
    .ds-toolbar {
      display: flex; align-items: center; gap: 10px;
      margin-bottom: 14px; flex-wrap: wrap;
    }
    .ds-toolbar-title { font-size: 14px; font-weight: 500; color: var(--c4); flex: 1; text-transform: uppercase; letter-spacing: .04em; }

    /* Suche */
    .ds-search {
      display: flex; align-items: center;
      border: 1px solid var(--c3); border-radius: 8px;
      overflow: hidden; background: var(--c2);
      transition: border-color .2s;
    }
    .ds-search:focus-within { border-color: var(--accent); }
    .ds-search svg { width: 14px; height: 14px; stroke: var(--c4); fill: none; stroke-width: 2; margin-left: 10px; flex-shrink: 0; }
    .ds-search-input {
      border: none; background: transparent;
      padding: 7px 10px; font-size: 13px; color: var(--c1);
      outline: none; width: 190px;
      font-family: var(--font-body);
    }

    /* Upload-Button – gleiche Optik wie .card:hover-Akzent */
    .ds-upload-btn {
      display: flex; align-items: center; gap: 6px;
      font-size: 13px; font-weight: 500; padding: 7px 14px;
      border: 1px solid var(--c3); border-radius: 8px;
      background: var(--c2); color: var(--c1); cursor: pointer;
      font-family: var(--font-body); transition: all .2s;
    }
    .ds-upload-btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
    .ds-upload-btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }

    /* Abschnitts-Label */
    .ds-section-label {
      font-size: 11px; color: var(--c4); text-transform: uppercase;
      letter-spacing: .06em; margin-bottom: 10px; margin-top: 4px;
    }

    /* Dateiliste */
    .ds-file-list { display: flex; flex-direction: column; gap: 8px; }
    .ds-file-item {
      display: flex; align-items: center; gap: 12px;
      padding: 11px 14px;
      border: 1px solid var(--c3); border-radius: 10px;
      background: var(--c2); transition: border-color .2s, transform .2s;
    }
    .ds-file-item:hover { border-color: var(--accent); transform: translateY(-1px); }

    /* Datei-Icons */
    .ds-file-icon {
      width: 34px; height: 34px; border-radius: 7px;
      display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    }
    .ds-fi-pdf  { background: #fee2e2; } .ds-fi-pdf  svg { stroke: #b91c1c; }
    .ds-fi-docx { background: #dbeafe; } .ds-fi-docx svg { stroke: #1d4ed8; }
    .ds-fi-xlsx { background: #dcfce7; } .ds-fi-xlsx svg { stroke: #15803d; }
    .ds-fi-pptx { background: #ffedd5; } .ds-fi-pptx svg { stroke: #c2410c; }
    .ds-fi-img  { background: #fce7f3; } .ds-fi-img  svg { stroke: #9d174d; }
    .ds-fi-def  { background: var(--c3); } .ds-fi-def svg { stroke: var(--c4); }
    .ds-file-icon svg { width: 16px; height: 16px; fill: none; stroke-width: 1.8; }

    .ds-file-meta { flex: 1; min-width: 0; }
    .ds-file-name {
      font-size: 13px; font-weight: 500; color: var(--c1);
      white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    }
    .ds-file-sub {
      font-size: 11px; color: var(--c4); margin-top: 2px;
      display: flex; gap: 8px; align-items: center;
    }
    .ds-owner-badge {
      font-size: 10px; padding: 2px 8px; border-radius: 20px;
      background: var(--c3); color: var(--c4);
    }
    .ds-owner-badge.mine { background: #dbeafe; color: #1d4ed8; }

    /* Aktions-Buttons */
    .ds-file-btns { display: flex; gap: 5px; flex-shrink: 0; }
    .ds-icon-btn {
      width: 28px; height: 28px; border-radius: 7px;
      border: 1px solid var(--c3); background: #fff; cursor: pointer;
      display: flex; align-items: center; justify-content: center;
      transition: all .15s;
    }
    .ds-icon-btn:hover { border-color: var(--accent); background: #dbeafe; }
    .ds-icon-btn svg { width: 13px; height: 13px; stroke: var(--c4); fill: none; stroke-width: 2; }
    .ds-icon-btn:hover svg { stroke: var(--accent); }
    .ds-icon-btn.danger:hover { border-color: #ef4444; background: #fee2e2; }
    .ds-icon-btn.danger:hover svg { stroke: #b91c1c; }

    /* Drop-Zone */
    .ds-drop-zone {
      display: block;
      border: 1.5px dashed var(--c3); border-radius: 10px;
      padding: 22px; text-align: center;
      color: var(--c4); font-size: 13px; cursor: pointer;
      margin-top: 14px; font-family: var(--font-body);
      transition: border-color .2s, background .2s, color .2s;
    }
    .ds-drop-zone:hover, .ds-drop-zone.drag {
      border-color: var(--accent); background: #dbeafe; color: #1d4ed8;
    }
    .ds-drop-zone svg {
      width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.5;
      display: block; margin: 0 auto 7px;
    }

    /* Leer-Zustand */
    .ds-empty { text-align: center; padding: 36px; color: var(--c4); font-size: 13px; }

    /* Toast */
    .ds-toast {
      display: none; margin-top: 12px;
      padding: 10px 16px;
      background: #dbeafe; color: #1d4ed8;
      font-size: 12px; border-radius: 8px;
      border: 1px solid var(--accent);
      font-family: var(--font-body);
    }

    /* ── Login-Bereich ─────────────────────────────────────── */
    .ds-login-wrap {
      max-width: 420px;
      margin: 0 auto;
      background: #fff;
      border: 1px solid var(--c3);
      border-radius: 12px;
      padding: 2.5rem;
    }
    .ds-login-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 1.5rem; }
    .ds-login-logo-icon {
      width: 38px; height: 38px; background: #dbeafe; border-radius: 9px;
      display: flex; align-items: center; justify-content: center;
    }
    .ds-login-logo-icon svg { width: 19px; height: 19px; stroke: var(--accent); fill: none; stroke-width: 2; }
    .ds-login-logo-name { font-family: var(--font-head); font-size: 18px; color: var(--c1); }

    .ds-login-title { font-family: var(--font-head); font-size: 22px; font-weight: 400; color: var(--c1); margin-bottom: 6px; }
    .ds-login-sub { font-size: 14px; color: var(--c4); margin-bottom: 1.75rem; }

    .ds-field { margin-bottom: 1.1rem; }
    .ds-field label { font-size: 12px; color: var(--c4); display: block; margin-bottom: 5px; }
    .ds-field input {
      width: 100%; padding: 10px 13px; font-size: 14px;
      border: 1px solid var(--c3); border-radius: 8px;
      background: var(--c2); color: var(--c1); outline: none;
      font-family: var(--font-body); transition: border-color .2s;
    }
    .ds-field input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }

    .ds-login-btn {
      width: 100%; padding: 11px; font-size: 14px; font-weight: 500;
      border: none; border-radius: 8px;
      background: var(--accent); color: #fff; cursor: pointer; margin-top: 8px;
      font-family: var(--font-body); transition: background .2s;
    }
    .ds-login-btn:hover { background: #1d4ed8; }

    .ds-login-err { font-size: 12px; color: #b91c1c; margin-top: 8px; display: none; }

    .ds-demo-hint {
      font-size: 11.5px; color: var(--c4); margin-top: 1.25rem;
      padding: 12px 14px; background: var(--c2);
      border: 1px solid var(--c3); border-radius: 8px; line-height: 1.8;
    }
    .ds-demo-hint strong { color: var(--c1); }
    .ds-demo-hint code {
      font-family: monospace; font-size: 11px;
      background: var(--c3); padding: 1px 5px; border-radius: 4px;
    }

    input[type=file] { display: none; }

    /* Responsive */
    @media (max-width: 768px) {
      .ds-stats-grid { grid-template-columns: 1fr 1fr; }
      .ds-search-input { width: 140px; }
      .ds-login-wrap { padding: 1.5rem; }
    }
