/* ==========================================================================
   Condor GmbH - Stylesheet
   Farb- und Massverhaeltnisse entsprechen der bisherigen WordPress-Seite
   (Divi-Theme): Navy #172765, Footer #0f2066, Akzent #edb059.
   ========================================================================== */

:root {
  --navy: #172765;
  --navy-dark: #0f2066;
  --accent: #edb059;
  --accent-dark: #d1912f;
  --text: #666666;
  --heading: #333333;
  --line: #e4e4e4;
  --bg: #ffffff;
  --bg-soft: #f6f6f6;
  --bg-bottom: #efefef;
  --container: 1080px;
  --header-h: 96px;          /* am Original gemessen */
  --header-h-mobile: 66px;
  --radius: 2px;
  --shadow: 0 1px 3px rgba(0, 0, 0, .12);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, .18);
  --ease: cubic-bezier(.4, 0, .2, 1);
}

/* --------------------------------------------------------------- Grundlagen */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 10px);
  -webkit-text-size-adjust: 100%;
}

/* Schriftgrade, Gewichte und Zeilenhöhen entsprechen den am Divi-Original
   gemessenen Werten (16px/500, Zeilenhöhe 2em, Überschriften 60/36/26/22/18 px). */
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 2;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--navy); text-decoration: none; transition: color .2s var(--ease); }
a:hover, a:focus-visible { color: var(--accent-dark); }

h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-weight: 500;
  line-height: 1.2;
  margin: 0 0 .5em;
}

/* Überschrift im Fließtext: im Original in Versalien */
.prose h1,
.split__text h1 {
  font-size: 2.25rem;         /* 36px */
  line-height: 1.5;
  text-transform: uppercase;
}

h1 { font-size: 2.25rem; }    /* 36px */
h2 { font-size: 1.625rem; }   /* 26px */
h3 { font-size: 1.375rem; line-height: 1.4; }   /* 22px */
h4 { font-size: 1.125rem; line-height: 1.4; }   /* 18px */
h5 { font-size: 1rem; }
h6 { font-size: .875rem; }

p { margin: 0 0 1.4em; }
ul, ol { margin: 0 0 1.4em; padding-left: 1.3em; }
li { margin-bottom: .1em; line-height: 1.625; }
strong { color: inherit; font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

/* Blocksatz nur mit Silbentrennung - sonst reissen die Zeilen auf */
.ta-justify { text-align: justify; hyphens: auto; }
.ta-center { text-align: center; }

/* In schmalen Spalten ist Flattersatz lesbarer */
.card .ta-justify,
.split__text .ta-justify { text-align: left; }

.container {
  width: min(90%, var(--container));
  margin-inline: auto;
}

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 8px; left: 8px;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: .6rem 1rem;
  border-radius: var(--radius);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------ Header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: #fff;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: var(--header-h);
}

.logo img {
  width: auto;
  height: 69px;              /* Original: 170 x 69 px */
  transition: height .25s var(--ease);
}

.site-header.is-compact .logo img { height: 52px; }
.site-header.is-compact .header-inner { min-height: 64px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.menu,
.lang-switch,
.submenu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.menu { gap: 1.4rem; }

.menu > li { position: relative; margin: 0; }

.menu > li > a {
  display: block;
  padding: .4rem 0;
  color: var(--navy);
  font-size: 1.0625rem;      /* 17 px, Gewicht 600 wie im Original */
  font-weight: 600;
  line-height: 1.4;
}

.menu > li > a:hover,
.menu > li > a:focus-visible,
.menu > li > a[aria-current] { color: var(--accent-dark); }

.menu > li > a[aria-current]::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--accent);
  margin-top: 4px;
}

.submenu {
  position: absolute;
  top: 100%;
  left: -1rem;
  flex-direction: column;
  min-width: 220px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--accent);
  padding: .5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}

.has-sub:hover .submenu,
.has-sub:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.submenu li { margin: 0; }

.submenu a {
  display: block;
  padding: .5rem 1.2rem;
  color: var(--navy);
  font-size: 1rem;
}

.submenu a:hover,
.submenu a:focus-visible { background: var(--bg-soft); color: var(--accent-dark); }

.sub-toggle { display: none; }

.lang-switch { gap: .35rem; align-items: center; }

.lang-switch li { margin: 0; }

.lang-switch a {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .45rem;
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  opacity: .75;
  transition: opacity .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

/* Flaggen wie in der bisherigen Seite (Polylang-Format 16 x 11) */
.lang-switch img {
  width: 16px;
  height: 11px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}

.lang-switch__code { line-height: 1; }

.lang-switch a:hover,
.lang-switch a:focus-visible { border-color: var(--accent); color: var(--accent-dark); opacity: 1; }

.lang-switch .is-current {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  opacity: 1;
  cursor: default;
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  height: 2px;
  width: 26px;
  background: var(--navy);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}

.nav-toggle span { margin: 0 auto; position: relative; }
.nav-toggle span::before,
.nav-toggle span::after { content: ''; position: absolute; left: 0; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }

main { padding-top: var(--header-h); }

/* -------------------------------------------------------------- Sektionen */

.section { padding: 3.4rem 0; }
.section + .section { padding-top: 0; }
.section:last-child { padding-bottom: 4rem; }

.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h2 { margin-top: 1.4em; }
.prose > h2:first-child { margin-top: 0; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

/* Einleitung der Startseite: im Original 18 px auf rund 720 px Breite */
.prose--intro {
  max-width: 760px;
  font-size: 1.125rem;
}

.prose--intro h1,
.prose--intro h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.25rem);   /* 36 px wie im Original */
  font-weight: 500;
  line-height: 1.5;
  text-transform: uppercase;
}

/* Hero und Banner */

.hero,
.banner {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  color: #fff;
}

.hero { min-height: clamp(380px, 55vh, 530px); }      /* Original: 528 px */
.banner { min-height: clamp(260px, 40vh, 474px); }    /* Original: 474 px, Innenabstand 150 px */

.hero__img,
.banner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero__overlay,
.banner__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15, 32, 102, .55), rgba(15, 32, 102, .35));
}

.hero__inner { padding: 3rem 0; }
.banner__inner { padding: 2rem 0; }

/* Hero-Titel 70 px/700, Bannerüberschrift 70 px/500 - wie im Original */
.hero h1,
.banner h2 {
  color: #fff;
  font-size: clamp(2.4rem, 5.6vw, 4.375rem);
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
  margin-bottom: .2em;
}

.banner h2 {
  font-weight: 500;
  margin: 0;
  /* Original: Textmodul mit 63 % schwarzem Grund, 20 px Innenabstand */
  background: rgba(0, 0, 0, .63);
  padding: 20px 24px;
  max-width: 756px;
  margin-inline: auto;
  text-shadow: none;
}

.hero p {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.75rem);
  font-weight: 500;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

/* Seitentitel - im Original ein 315 px hohes Band mit Hintergrundbild */

.page-title {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 2.6rem 0;
}

.page-title h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.2rem, 5vw, 3.75rem);   /* 60 px im Original */
  font-weight: 800;
  line-height: 1;
}

.page-title--image {
  padding: clamp(3.5rem, 9vw, 7.5rem) 0;
  border-bottom: 0;
}

.page-title__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}

.page-title__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(15, 32, 102, .38), rgba(15, 32, 102, .12));
}

.page-title--light h1 {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}

/* Text + Bild */

.split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  grid-template-columns: 1fr 1fr;
}

/* Weltkarte und Länderliste: im Original 3/4 zu 1/4 */
.split--wide { grid-template-columns: 3fr 1fr; align-items: start; }
.split--wide .split__text { font-size: .9375rem; }

.split__media img { width: 100%; border-radius: var(--radius); }

/* Karten */

.cards {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Im Original schlichte Textspalten ohne Rahmen */
.card {
  background: transparent;
  padding: 0;
}

/* Kartenüberschrift im Original: 41 px, 700, Navy */
.card h2 {
  color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.5625rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: .5em;
}

.card h2 a { color: inherit; }
.card h2 a:hover { color: var(--accent-dark); }
.card h4 { color: var(--heading); font-size: 1.125rem; margin-bottom: .4em; }
.card > :last-child { margin-bottom: 0; }

.w-full { width: 100%; }

.gallery {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

/* ------------------------------------------------------------- Sortiment */

.catalog__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.catalog__filters {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.filter-btn {
  font: inherit;
  font-size: .9375rem;
  padding: .4rem .9rem;
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

.filter-btn:hover { border-color: var(--accent); color: var(--accent-dark); }

.filter-btn[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.catalog__search input {
  font: inherit;
  font-size: .9375rem;
  padding: .5rem .9rem;
  min-width: 240px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--heading);
  background: #fff;
}

.catalog__search input:focus-visible { border-color: var(--accent); }

.catalog__count {
  margin: .9rem 0 0;
  font-size: .875rem;
  color: #8a8a8a;
}

.catalog__grid {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: repeat(auto-fill, minmax(225px, 1fr));
  margin-top: 1.6rem;
  padding: 0;
  list-style: none;
}

.product {
  margin: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform .2s var(--ease);
}

/* muss nach der display-Regel stehen, sonst greift [hidden] nicht */
.product[hidden] { display: none; }

.product:hover,
.product:focus-within { transform: translateY(-2px); }

.product__btn {
  font: inherit;
  text-align: left;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product__media {
  aspect-ratio: 3 / 4;
  background: #fff;
  overflow: hidden;
  padding: .4rem;
}

.product__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .4s var(--ease);
}

.product:hover .product__media img { transform: scale(1.04); }

.product__media--empty {
  display: grid;
  place-items: center;
  color: #b0b0b0;
  font-size: .8125rem;
}

.product__body { padding: .8rem 0 1.2rem; }

/* Original: Kacheltitel 18 px/500 als Link in #191e6a, Kategorien 14 px in #666 */
.product__title {
  margin: 0 0 .2rem;
  font-size: 1.125rem;
  font-weight: 500;
  color: #191e6a;
  line-height: 1.35;
}

.product__btn:hover .product__title { color: var(--accent-dark); }

.product__meta {
  margin: 0;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--text);
}

.product__variants {
  margin: .5rem 0 0;
  font-size: .875rem;
  color: var(--text);
}

.catalog__empty {
  margin: 2rem 0 0;
  padding: 1.2rem;
  background: var(--bg-soft);
  text-align: center;
}

.catalog__list { columns: 2 260px; font-size: .9375rem; }

/* Produkt-Dialog */

.product-dialog {
  width: min(920px, 92vw);
  max-height: 88vh;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.product-dialog::backdrop { background: rgba(15, 32, 102, .6); }

.product-dialog__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  max-height: 88vh;
}

.product-dialog__media {
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  min-height: 240px;
}

.product-dialog__media img {
  width: 100%; height: 100%;
  max-height: 88vh;
  object-fit: contain;
  padding: 1.5rem;
  background: #fff;
}

/* Produkte mit zweiter Abbildung: beide nebeneinander */
.product-dialog__media.has-more {
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: .25rem;
}

.product-dialog__media.has-more img { padding: 1rem .5rem; }

.product-dialog__body {
  padding: 2rem 2rem 2.2rem;
  overflow-y: auto;
}

.product-dialog__body h2 { color: var(--navy); margin-bottom: .3em; }

.product-dialog__cats {
  margin: 0 0 1.2rem;
  font-size: .8125rem;
  color: #8a8a8a;
}

.product-dialog__list { list-style: none; margin: 0; padding: 0; }

.product-dialog__list li {
  padding: .5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .9375rem;
}

.dialog-close {
  position: absolute;
  top: .6rem; right: .6rem;
  width: 40px; height: 40px;
  font-size: 1.6rem;
  line-height: 1;
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--navy);
  cursor: pointer;
}

.dialog-close:hover { background: #fff; color: var(--accent-dark); }

.dialog-nav {
  display: flex;
  gap: .5rem;
  margin-top: 1.6rem;
}

.dialog-nav button {
  font: inherit;
  font-size: .875rem;
  padding: .45rem .9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  cursor: pointer;
}

.dialog-nav button:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-dark); }
.dialog-nav button:disabled { opacity: .4; cursor: default; }

/* ------------------------------------------------------------------ Footer */

.site-footer { margin-top: 3rem; }

.site-footer { background: var(--navy-dark); }

.footer-nav {
  background: rgba(255, 255, 255, .05);   /* wie im Original über dem Navy */
  padding: 1.1rem 0;
}

.footer-nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;   /* Original: linksbündig */
  gap: .3rem 1.4rem;
}

.footer-nav li { margin: 0; }

.footer-nav a {
  color: rgba(255, 255, 255, .85);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .02em;
}

.footer-nav a:hover,
.footer-nav a:focus-visible { color: var(--accent); }

.footer-bottom {
  background: var(--bg-bottom);
  padding: .9rem 0;
}

.footer-bottom p {
  margin: 0;
  font-size: .875rem;         /* Original: 14 px, linksbündig */
  color: var(--text);
  text-align: left;
}

.to-top {
  position: fixed;
  right: 1.2rem; bottom: 1.2rem;
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  z-index: 90;
}

.to-top::before {
  content: '';
  width: 10px; height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(-45deg) translate(-2px, 2px);
}

.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent-dark); color: #fff; }

/* ------------------------------------------------------------ Breakpoints */

@media (max-width: 980px) {
  html { scroll-padding-top: calc(var(--header-h-mobile) + 10px); }
  main { padding-top: var(--header-h-mobile); }

  .header-inner { min-height: var(--header-h-mobile); }
  .logo img { height: 44px; }
  .site-header.is-compact .logo img { height: 40px; }

  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    inset: var(--header-h-mobile) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--header-h-mobile));
    overflow-y: auto;
    padding: .5rem 5% 1.5rem;
    display: none;
  }

  .main-nav.is-open { display: flex; }

  .menu { flex-direction: column; gap: 0; }

  .menu > li { border-bottom: 1px solid var(--line); }

  .menu > li > a {
    padding: .9rem 0;
    font-size: 1.0625rem;
  }

  .menu > li > a[aria-current]::after { display: none; }

  .has-sub { display: grid; grid-template-columns: 1fr auto; }

  .sub-toggle {
    display: block;
    width: 44px;
    background: none;
    border: 0;
    cursor: pointer;
    position: relative;
  }

  .sub-toggle::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 9px; height: 9px;
    border-right: 2px solid var(--navy);
    border-bottom: 2px solid var(--navy);
    transform: translate(-50%, -70%) rotate(45deg);
    transition: transform .2s var(--ease);
  }

  .sub-toggle[aria-expanded="true"]::before { transform: translate(-50%, -30%) rotate(-135deg); }

  .submenu {
    position: static;
    grid-column: 1 / -1;
    box-shadow: none;
    border-top: 0;
    border-left: 2px solid var(--accent);
    padding: 0 0 .6rem;
    margin: 0 0 .6rem;
    opacity: 1;
    visibility: hidden;
    transform: none;
    display: none;
  }

  .submenu.is-open { display: block; visibility: visible; }
  .submenu a { padding: .55rem 1rem; }

  .lang-switch { margin-top: 1.2rem; }

  .split { grid-template-columns: 1fr; gap: 1.6rem; }
  .split--left .split__media { order: -1; }

  .product-dialog__inner { grid-template-columns: 1fr; }
  .product-dialog__media { max-height: 40vh; }
  .product-dialog__body { padding: 1.5rem; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .section { padding: 2.4rem 0; }
  .catalog__search input { min-width: 0; width: 100%; }
  .catalog__controls { align-items: stretch; }
  .catalog__list { columns: 1; }
  .card { padding: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  .site-header, .to-top, .catalog__controls, .nav-toggle { display: none !important; }
  main { padding-top: 0; }
  body { font-size: 11pt; color: #000; }
}
