/* =============================================================

   Schäffer & Köder – Hauptstylesheet (Premium Redesign V3)

   Einzige CSS-Datei für die gesamte Website.

   ============================================================= */



*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }



:root {

  --steel:   #192637; /* Moderner, dunklerer Steel-Ton */

  --steel2:  #2a3d52; /* Mittlerer Steel-Ton */

  --accent:  #c8973a; /* Edles Gold */

  --accent2: #e8b35a; /* Helleres Akzent-Gold */

  --light:   #f0f3f7; /* Cleaner, hellgrauer Hintergrund */

  --mid:     #dce3ec; /* Modernisiertes Trennlinien-Grau */

  --text:    #38404c;

  --muted:   #6b7585;

  --white:   #ffffff;

  --radius:  10px;    /* Optimierter Radius nach Vorlage */

  --shadow:  0 4px 20px rgba(25,38,55,.10); /* Weicher, moderner Schatten */

  --font:    'DM Sans', sans-serif;

  --font-h:  'DM Serif Display', serif;

}



html { scroll-behavior: smooth; }



body {

  font-family: var(--font);

  font-size: 15px;

  line-height: 1.7;

  color: var(--text);

  background: var(--light);

}



/* ── TOPBAR ─────────────────────────────────────────────── */

.topbar {

  background: var(--steel);

  color: #7e9ab3;

  font-size: 12px;

  padding: 7px 24px;

  display: flex;

  justify-content: space-between;

  align-items: center;

  gap: 12px;

  flex-wrap: wrap;

  border-bottom: 1px solid rgba(255,255,255,.05);

}

.topbar a { color: #9ab5c8; text-decoration: none; transition: color .2s; }

.topbar a:hover { color: var(--accent2); }



/* ── HEADER & PERFECT CENTERING ─────────────────────────── */

header {

  background: var(--white);

  border-bottom: 3px solid var(--accent);

  padding: 16px 24px 0;

  position: sticky;

  top: 0;

  z-index: 200;

  box-shadow: 0 4px 20px rgba(25,38,55,.08);

  width: 100%;

}



/* Der innere Container zentriert den gesamten Header-Inhalt mittig auf der Seite */

.header-inner { 

  max-width: 1140px; 

  width: 100%;

  margin: 0 auto; 

}



.header-top {

  display: flex;

  align-items: center;

  justify-content: space-between;

  margin-bottom: 16px;

  gap: 20px;

  flex-wrap: wrap;

}



/* Logo */

.logo-link { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }

.site-logo  { height: 50px; width: auto; display: block; }



/* Öffnungszeiten */

.header-hours { font-size: 12.5px; color: var(--muted); display: flex; flex-direction: column; gap: 3px; }

.hours-label {

  font-size: 10px;

  text-transform: uppercase;

  letter-spacing: 1.2px;

  color: var(--accent);

  font-weight: 700;

  margin-bottom: 2px;

}

.hours-table { border: none; width: auto; margin: 0; }

.hours-table td {

  border: none !important;

  padding: 1px 12px 1px 0 !important;

  background: none !important;

  font-size: 12.5px;

  color: var(--muted);

}

.hours-table td:first-child { font-weight: 600; color: var(--steel2); min-width: 60px; }

.hours-more {

  display: inline-block;

  margin-top: 4px;

  font-size: 11px;

  color: var(--accent);

  text-decoration: none;

  transition: color .2s;

}

.hours-more:hover { color: var(--steel); }



/* Kontakt-Block rechts */

.header-contact {

  display: flex;

  flex-direction: column;

  align-items: flex-end;

  gap: 6px;

}

.header-contact .phone {

  font-size: 15px;

  font-weight: 700;

  color: var(--steel);

  text-decoration: none;

  padding: 6px 12px;

  border: 1.5px solid var(--mid);

  border-radius: 8px;

  transition: all .2s;

}

.header-contact .phone:hover { color: var(--accent); border-color: var(--accent); }



.btn-contact {

  background: var(--accent);

  color: var(--steel) !important;

  padding: 7px 18px;

  border-radius: 6px;

  font-size: 12px;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: .5px;

  text-decoration: none !important;

  transition: background .2s;

  white-space: nowrap;

}

.btn-contact:hover { background: var(--accent2); }



/* ── NAVIGATION (ZENTRIERTE NAVIGATIONSLINKS) ────────────── */

nav { border-top: 1px solid var(--mid); }

nav ul { 

  list-style: none; 

  display: flex; 

  justify-content: center; /* Zentriert die Menüpunkte perfekt in der Mitte */

  flex-wrap: wrap; 

}

nav ul li a {

  display: flex;

  align-items: center;

  gap: 6px;

  padding: 12px 14px;

  font-size: 12px;

  font-weight: 500;

  letter-spacing: .5px;

  text-transform: uppercase;

  color: var(--muted);

  text-decoration: none;

  border-bottom: 3px solid transparent;

  margin-bottom: -3px;

  transition: color .2s, border-color .2s;

}

nav ul li a:hover,

nav ul li a.active {

  color: var(--steel);

  border-bottom-color: var(--accent);

}

nav ul li a::before {

  content: '';

  width: 5px;

  height: 5px;

  border-radius: 50%;

  background: var(--accent);

  opacity: 0;

  transition: opacity .2s;

}

nav ul li a:hover::before, 

nav ul li a.active::before {

  opacity: 1;

}



/* ── PAGE LAYOUT ────────────────────────────────────────── */

.page-wrap {

  max-width: 1140px;

  margin: 0 auto;

  padding: 28px 24px;

  display: grid;

  grid-template-columns: 240px 1fr; 

  gap: 28px;

  align-items: start;

}



/* ── SIDEBAR ────────────────────────────────────────────── */

.sidebar {

  background: var(--white);

  border-radius: var(--radius);

  box-shadow: var(--shadow);

  padding: 0; 

  position: sticky;

  top: 110px;

  max-height: calc(100vh - 140px);

  overflow-y: auto;

  overflow-x: hidden;

  scrollbar-width: thin;

  scrollbar-color: var(--mid) transparent;

}



.sidebar::before {

  content: 'PRODUKTE & SORTIMENT';

  display: block;

  background: linear-gradient(135deg, var(--steel), var(--steel2));

  padding: 16px 20px;

  color: var(--accent2);

  font-family: var(--font);

  font-size: 11px;

  text-transform: uppercase;

  letter-spacing: 1.5px;

  font-weight: 700;

}



.sidebar h2 {

  display: none;

}



.sidebar .cat { 

  padding: 12px 18px 4px 18px;

  border-bottom: 1px solid #f0f3f7;

}

.sidebar .cat:last-of-type {

  border-bottom: none;

}



.sidebar .cat a {

  display: flex;

  align-items: center;

  gap: 8px;

  font-size: 12.5px;

  font-weight: 500;

  color: var(--steel2);

  text-decoration: none;

  padding: 5px 0;

  line-height: 1.5;

  transition: all .18s;

}



.sidebar .cat a::before {

  content: '';

  width: 4px;

  height: 4px;

  border-radius: 50%;

  background: var(--mid);

  flex-shrink: 0;

  transition: background .18s;

}



.sidebar .cat a:hover,

.sidebar .cat a.active {

  color: var(--accent);

  font-weight: 600;

  transform: translateX(2px);

}

.sidebar .cat a:hover::before,

.sidebar .cat a.active::before {

  background: var(--accent);

}



.sidebar .schnäppchen {

  background: #fff8ee;

  padding: 12px 18px !important;

  border-top: 1px solid var(--mid);

}

.sidebar .schnäppchen a {

  color: var(--accent) !important;

  font-weight: 700 !important;

}

.sidebar .schnäppchen a::before {

  display: none;

}



/* ── MAIN CONTENT ───────────────────────────────────────── */

main {

  background: transparent; 

  box-shadow: none;

  padding: 0;

  min-width: 0;

}



/* Typografie im Inhaltsbereich */

main h1, .page-title {

  font-family: var(--font-h);

  font-size: 1.75rem;

  color: var(--steel);

  margin-bottom: 18px;

  padding-bottom: 14px;

  border-bottom: 2px solid var(--mid);

  line-height: 1.2;

}

main h2 { font-size: 1.2rem; color: var(--steel); margin: 24px 0 10px; font-weight: 600; }

main h3 { font-size: 1.05rem; color: var(--steel2); margin: 18px 0 8px; font-weight: 600; }

main p  { margin-bottom: 14px; font-size: 14px; color: var(--text); line-height: 1.75; }

main a  { color: var(--accent); text-decoration: none; font-weight: 500; transition: color .2s; }

main a:hover { color: var(--steel); text-decoration: underline; }

main strong, main b { color: var(--steel); }

main img { max-width: 100%; height: auto; border-radius: var(--radius); }

main ul, main ol { padding-left: 22px; margin-bottom: 14px; font-size: 14px; }

main li { margin-bottom: 6px; line-height: 1.6; }



/* Tabellen im Content */

main table {

  border-collapse: collapse;

  width: 100%;

  margin-bottom: 18px;

  font-size: 13.5px;

  background: var(--white);

  border-radius: var(--radius);

  overflow: hidden;

  box-shadow: 0 1px 4px rgba(25,38,55,.05);

}

main table td, main table th {

  padding: 10px 14px;

  border: 1px solid var(--mid);

  vertical-align: top;

  color: var(--text);

}

main table th {

  background: var(--steel) !important;

  font-weight: 600;

  color: var(--white);

  font-size: 12px;

  text-transform: uppercase;

  letter-spacing: .5px;

  border-color: var(--steel);

}

main table tr:nth-child(even) td { background: #fafbfc !important; }



/* ── CTA STRIP ──────────────────────────────────────────── */

.cta-strip {

  background: linear-gradient(135deg, var(--steel) 0%, var(--steel2) 100%);

  border-radius: var(--radius);

  padding: 22px 28px;

  margin-top: 32px;

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 16px;

  flex-wrap: wrap;

  box-shadow: var(--shadow);

}

.cta-strip p { font-size: 14px; color: var(--white); font-weight: 500; margin-bottom: 0; }

.cta-strip a {

  background: var(--accent);

  color: var(--steel) !important;

  padding: 10px 22px;

  border-radius: 6px;

  text-decoration: none !important;

  font-size: 13px;

  font-weight: 700;

  flex-shrink: 0;

  transition: background .2s;

}

.cta-strip a:hover { background: var(--accent2); }



/* ── FOOTER ─────────────────────────────────────────────── */

footer {

  background: var(--steel);

  color: #6a8ea8;

  text-align: center;

  padding: 32px 24px;

  font-size: 13px;

  margin-top: 48px;

  line-height: 1.8;

  border-top: 4px solid var(--accent);

}

footer a { color: #9ab5c8; text-decoration: none; transition: color .2s; }

footer a:hover { color: var(--accent2); }

.footer-links { margin-top: 8px; font-size: 12.5px; }

.footer-links a { margin: 0 10px; }



/* ── INDEX HERO-STRIP ───────────────────────────────────── */

.hero-strip {

  background: linear-gradient(135deg, var(--steel) 0%, var(--steel2) 60%, #2a3f58 100%);

  border-radius: var(--radius);

  padding: 40px 44px;

  margin-bottom: 24px;

  color: var(--white);

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 32px;

  flex-wrap: wrap;

  position: relative;

  overflow: hidden;

  box-shadow: var(--shadow);

}

.hero-strip::before {

  content: '';

  position: absolute;

  inset: 0;

  background: radial-gradient(circle at 80% 50%, rgba(200,151,58,.12) 0%, transparent 60%);

  pointer-events: none;

}

.hero-strip div:first-child::before {

  content: 'IHR SPEZIALIST IN DER REGION';

  display: block;

  font-size: 11px;

  font-weight: 700;

  letter-spacing: 1.2px;

  text-transform: uppercase;

  color: var(--accent2);

  margin-bottom: 12px;

}

.hero-strip h2 { 

  font-family: var(--font-h); 

  font-size: 2rem; 

  font-weight: normal;

  line-height: 1.15;

  margin-bottom: 12px; 

  color: var(--white);

}

.hero-strip p  { 

  font-size: 14px; 

  color: #8aa8c2; 

  max-width: 440px; 

  line-height: 1.7; 

  margin-bottom: 0;

}



/* ASG-Badge */

.asg-badge {

  background: rgba(255, 255, 255, 0.07);

  border: 1px solid rgba(255, 255, 255, 0.12);

  border-radius: var(--radius);

  padding: 16px 22px;

  font-size: 12px;

  color: #7e9ab3;

  text-align: center;

  flex-shrink: 0;

  line-height: 1.6;

  backdrop-filter: blur(4px);

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 3px;

}

.asg-badge strong { 

  display: block; 

  font-family: var(--font-h);

  color: var(--accent2); 

  font-size: 1.7rem; 

  line-height: 1;

  font-weight: normal;

  text-transform: none;

  letter-spacing: normal;

  margin-bottom: 4px;

}

.asg-badge a { 

  color: #9ab5c8; 

  font-size: 11px; 

  text-decoration: none;

  transition: color .2s;

}

.asg-badge a:hover { color: var(--accent2); }



/* ── PRODUCT CARDS GRID ─────────────────────────────────── */

.grid-2 { 

  display: grid; 

  grid-template-columns: 1fr 1fr; 

  gap: 14px; 

}



/* card-grid: responsives Raster für Startseiten-Produktkarten */

.card-grid {

  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));

  gap: 18px;

  margin: 0 0 24px 0;

}



.card {

  background: var(--white);

  border-radius: var(--radius);

  box-shadow: 0 1px 4px rgba(25,38,55,.07);

  padding: 18px 20px;

  border: 1px solid var(--mid);

  transition: box-shadow .25s, transform .2s, border-color .2s;

  display: flex;

  flex-direction: column;

}

.card:hover {

  box-shadow: 0 10px 40px rgba(25,38,55,.14);

  transform: translateY(-2px);

  border-color: #c5cfe0;

}

.card-img {

  height: 120px; 

  display: flex;

  align-items: center;

  justify-content: center;

  margin-bottom: 12px;

}

.card-img img { max-width: 100%; max-height: 120px; object-fit: contain; }



.card h3 { 

  font-size: 13px; 

  font-weight: 700; 

  color: var(--steel); 

  margin-bottom: 6px; 

  line-height: 1.35;

}

.card p  { 

  font-size: 12px; 

  color: var(--muted); 

  line-height: 1.65; 

  flex-grow: 1; 

  margin-bottom: 0;

}

.card .mehr {

  display: flex;

  align-items: center;

  gap: 4px;

  margin-top: 12px;

  padding-top: 10px;

  border-top: 1px solid var(--light);

  font-size: 12px;

  font-weight: 700;

  color: var(--accent);

  text-decoration: none;

  background: transparent;

  transition: color .2s;

}

.card .mehr::after { 

  content: ' →'; 

  transition: transform .15s; 

  display: inline-block;

  margin-left: 4px;

}

.card:hover .mehr { color: var(--steel); }

.card:hover .mehr::after { transform: translateX(3px); }



/* ── SIDEBAR KATEGORIEÜBERSCHRIFTEN ─────────────────────── */

.sidebar .cat-label {

  display: block;

  font-size: 10px;

  font-weight: 700;

  text-transform: uppercase;

  letter-spacing: 1.2px;

  color: var(--accent);

  padding: 14px 18px 4px 18px;

  border-top: 1px solid var(--mid);

  margin-top: 4px;

}

.sidebar .cat-label:first-child { border-top: none; margin-top: 0; }



/* ── HAMBURGER MENÜ ──────────────────────────────────────── */

.hamburger {

  display: none;

  flex-direction: column;

  justify-content: center;

  gap: 5px;

  background: none;

  border: none;

  cursor: pointer;

  padding: 6px;

  margin-left: auto;

}

.hamburger span {

  display: block;

  width: 24px;

  height: 2px;

  background: var(--steel);

  border-radius: 2px;

  transition: all .25s;

}

.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); }



/* Nur für kleine Bildschirme (Mobile) */

@media (max-width: 760px) {

  #main-nav ul {

    display: none; /* Standardmäßig ausblenden */

  }

  

  /* Wenn die Klasse aktiv ist, einblenden */

  #main-nav.nav-mobile-open ul {

    display: flex;

    flex-direction: column;

  }

}



/* ── RESPONSIVE ANPASSUNGEN ─────────────────────────────── */

@media (max-width: 960px) {

  .header-hours { display: none; }

  .grid-2       { grid-template-columns: 1fr; }

  .card-grid    { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }

}

@media (max-width: 760px) {

  .page-wrap      { grid-template-columns: 1fr; padding: 16px; gap: 20px; }

  .sidebar        { position: static; max-height: none; }

  .sidebar::before { border-radius: var(--radius) var(--radius) 0 0; }

  

  main { 

    background: var(--white); 

    border-radius: var(--radius); 

    box-shadow: var(--shadow); 

    padding: 20px 18px; 

  }

  

  .hero-strip     { padding: 30px 24px; gap: 20px; }

  .header-top     { gap: 12px; flex-wrap: wrap; }

  .site-logo      { height: 36px; }

  .topbar         { font-size: 11px; padding: 5px 16px; }

  header          { padding: 10px 16px 0; }



  /* Hamburger einblenden, Standard-Nav verstecken */

  .hamburger       { display: flex; }

  nav { border-top: none; }

  nav ul {

    flex-direction: column;

    border-top: 1px solid var(--mid);

    padding: 8px 0;

  }

  nav ul li a {

    padding: 10px 16px;

    font-size: 13px;

    border-bottom: none;

    text-transform: none;

    letter-spacing: 0;

  }

  nav ul li a:hover,

  nav ul li a.active { border-bottom: none; background: var(--light); border-radius: 6px; }

}

@media (max-width: 480px) {



  .header-contact .btn-contact {

    display: none;

  }



  .header-contact .phone {

    white-space: nowrap;

    font-size: 14px;

    padding: 6px 10px;

  }



  .card-grid {

    grid-template-columns: 1fr;

    gap: 12px;

  }



}
/* Responsive Grid für Kontaktseite */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr; /* Standard: eine Spalte (Handy) */
    gap: 24px;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr; /* Ab Tablet: zwei Spalten */
    }
}
@media (max-width: 768px) {
  .mobile-call-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--accent);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }
}