:root{
  --blue:#2f4e79;
  --blue-dark:#1f3d66;
  --green:#2e7d32;
  --green-hover:#3AA84B; /* keep the light-green hover idea */
  --text:#1f2937;
  --muted:#6b7280;
  --line:#e6eaef;
  --bg:#f6f7f9;
  --white:#ffffff;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Arial, Helvetica, sans-serif;
  color:var(--text);
  background: var(--white);
}

a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}

.container{
  width:min(1180px, calc(100% - 56px));
  margin:0 auto;
}

/* Header */
header{
  background: var(--white);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:22px 0;
}
.brand img{
  height:62px;
  width:auto;
}
.nav{
  display:flex;
  gap:34px;
  align-items:center;
  font-size:18px;
  font-weight:700;
  color: var(--blue);
}
.nav a{
  padding:8px 10px;
  border-radius:6px;
}

/* Active navigation item */
.nav a.active{
  color: var(--green);
  background: transparent;
  border-bottom: 3px solid var(--green);
  padding-bottom: 6px;
}

.nav a.active:hover{
  background: transparent;
  color: var(--green);
}
.nav a:hover{
  background: rgba(58,168,75,.14);
  color: var(--green);
}

/* subtle divider under header */
.header-divider{
  height:1px;
  background: var(--line);
}

/* Hero */
.hero{
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(0,0,0,.05), rgba(0,0,0,0) 55%),
    var(--white);
}
.hero-inner{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap:54px;
  align-items:center;
  padding:64px 0 28px;
}

.headline{
  font-size:60px;
  line-height:1.05;
  margin:0 0 16px;
  color: var(--blue);
  letter-spacing:-.5px;
  white-space:nowrap;
}
.headline-underline{
  width:140px;
  height:2px;
  background: linear-gradient(90deg, rgba(47,78,121,.75), rgba(47,78,121,.18), rgba(47,78,121,0));
  border-radius:999px;
  margin: 0 0 18px;
}

.subline{
  font-size:18px;
  color: var(--muted);
  margin:0 0 22px;
}

.actions{
  display:flex;
  gap:16px;
  align-items:center;
  margin: 0 0 18px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:52px;
  padding:0 26px;
  border-radius:6px;
  font-size:18px;
  font-weight:800;
  border:1px solid #dfe5ec;
  background:#fff;
  color: var(--blue);
}
.btn.primary{
  background: var(--green);
  border-color: transparent;
  color:#fff;
}
.btn.primary:hover{
  background: var(--green-hover);
}
.btn.outline:hover{
  background: rgba(58,168,75,.14);
  border-color: rgba(58,168,75,.22);
  color: var(--green);
}

/* Script tagline */
.tagline{
  margin-top:10px;
  color: var(--green);
  font-size:44px;
  font-weight:600;
  font-style:italic;
  font-family: "Segoe Script","Brush Script MT","Lucida Handwriting",cursive;
  transform: rotate(-2deg);
  white-space:nowrap;
  position:relative;
  display:inline-block;
}
.tagline:after{
  content:"";
  position:absolute;
  left:0;
  right:-260px; /* extend line like mockup */
  height:2px;
  bottom:-10px;
  background: rgba(46,125,50,.45);
  transform: rotate(-1deg);
}

/* Hero image: flush right, fade into content on left */
.hero-media{
  position:relative;
  margin-right: calc(50% - 50vw); /* bleed to viewport right edge */
  padding-left: 18px; /* gives the fade room */
}
.hero-media img{
  width:100%;
  height:320px;
  object-fit:cover;
  border:none;
  border-radius:0;
  box-shadow:none;
  /* mask fade from left to full */
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 20%);   /* József: Verblassen wird hier eingestellt */
  mask-image: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 20%);  /* József: Verblassen wird hier eingestellt */
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
  -webkit-mask-size:100% 100%;
  mask-size:100% 100%;
}
.hero-media:before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,.85) 16%, rgba(255,255,255,0) 40%);
  pointer-events:none;
}

/* USP bar */
.uspbar{
  background:
    linear-gradient(180deg, #f2f4f7 0%, #eef2f6 100%);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.usp-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:26px;
  padding:24px 0;
}
.usp{
  display:flex;
  align-items:center;
  gap:14px;
  flex:1 1 0;
}
.usp svg{
  width:54px;height:54px;
  color: var(--blue-dark);
}
.usp-title{
  font-size:20px;
  font-weight:900;
  color: var(--blue-dark);
}
.usp-sub{
  font-size:16px;
  color: var(--muted);
  margin-top:2px;
}
.sep{
  width:1px;
  height:62px;
  background: #d8dee6;
}

/* Footer */
footer{
  background: var(--white);
  padding:18px 0 22px;
}
.footer-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  color: var(--muted);
  font-size:14px;
}
.footer-links{
  display:flex;
  gap:18px;
}
.footer-links a{
  padding:6px 8px;
  border-radius:6px;
}
.footer-links a:hover{
  background: rgba(58,168,75,.14);
  color: var(--green);
}

/* Responsive */
@media (max-width: 980px){
  .container{ width:min(1180px, calc(100% - 32px)); }
  .nav{ gap:14px; font-size:16px; }
  .brand img{ height:52px; }
  .hero-inner{ grid-template-columns:1fr; gap:26px; padding:40px 0 18px; }
  .headline{ font-size:44px; white-space:normal; }
  .tagline{ font-size:34px; white-space:normal; }
  .tagline:after{ right:0; }
  .hero-media{ margin-right:0; padding-left:0; }
  .hero-media img{ height:280px; -webkit-mask-image:none; mask-image:none; }
  .hero-media:before{ display:none; }
  .usp-inner{ flex-direction:column; align-items:flex-start; gap:16px; }
  .sep{ width:100%; height:1px; }
}

/* --- v2 adjustments per feedback --- */

/* Make overall typography slightly smaller */
.nav{ font-size:17px; }
.headline{ font-size:54px; }
.subline{ font-size:17px; }
.btn{ font-size:17px; height:50px; }
.usp-title{ font-size:19px; }
.usp-sub{ font-size:15px; }
.footer-inner{ font-size:13px; }
@media (max-width: 980px){
  .headline{ font-size:42px; }
}

/* Hero image should align with grey USP box width (no viewport bleed) */
.hero-media{
  margin-right: 0 !important;
  padding-left: 0px !important;  /* HIER verschiebst du das Foto im Container */
}

/* Allow the green script line to overlap into the image area slightly */
.hero-inner > div:first-child{
  position: relative;
  z-index: 2;
}
.tagline{
  z-index: 3;
  margin-right: -140px; /* push into the image */
}

/* Move the underline closer to the script text */
.tagline:after{
  bottom: -6px;
  height: 2px;
  opacity: .5;
}

/* --- v3 typography + tagline underline refinement --- */

/* Globally scale typography slightly down */
body{ font-size:15px; }
.nav{ font-size:16px; }
.headline{ font-size:50px; }
.subline{ font-size:16px; }
.btn{ font-size:16px; height:48px; }
.tagline{ font-size:38px; }
.usp-title{ font-size:18px; }
.usp-sub{ font-size:14px; }
.footer-inner{ font-size:12.5px; }

@media (max-width: 980px){
  .headline{ font-size:38px; }
  .tagline{ font-size:30px; }
}

/* Move underline even closer to the script text */
.tagline:after{
  bottom: -3px;
  height: 2px;
  opacity: .55;
}

/* --- v4 logo size + lighter green palette --- */

/* Bigger logo in header */
.brand img{
  height:72px;
}
@media (max-width: 980px){
  .brand img{ height:58px; }
}

/* Lighter green across landing */
:root{
  --green:#46b35f;          /* lighter green */
  --green-hover:#6fd18a;    /* even lighter for hover */
}

/* Apply lighter green consistently */
.tagline{
  color: var(--green);
}
.tagline:after{
  background: rgba(70,179,95,.45);
}

.btn.primary{
  background: var(--green);
}
.btn.primary:hover{
  background: var(--green-hover);
}

.nav a:hover,
.footer-links a:hover{
  background: rgba(111,209,138,.22);
  color: var(--green);
}


/* --- photo alignment tweak after revert --- */
.hero-media{
  position: relative;
  width: calc(100% + 120px);   /* József: Container breiter */
  margin-left: -60px;         /* nach links ragen */
  transform: none;             /* alte Rechtsverschiebung raus */
  overflow: visible;
}

/* --- FIX: Logo darf beim Resize nicht verzerren --- */
.brand{
  flex: 0 0 auto;
  display:flex;
  align-items:center;
}

.brand img{
  height: auto !important;
  max-height: 72px;
  width: auto !important;
  max-width: none;          /* wichtig: nicht durch globale img-Regel quetschen */
  flex-shrink: 0;
  object-fit: contain;
}

@media (max-width: 980px){
  .brand img{ max-height: 58px; }
}

@media (max-width: 560px){
  .header-inner{ flex-wrap: wrap; gap: 10px; }
  .nav{ flex-wrap: wrap; justify-content: flex-start; }

  /* Mobile: gesamte Darstellung ca. 10% kompakter */
  html{ font-size: 90%; }
  .container{ width:min(1180px, calc(100% - 46px)); }
}

/* --- About page layout --- */
.about-grid{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap:54px;
  align-items:start;
}
@media (max-width: 980px){
  .about-grid{ grid-template-columns: 1fr; gap:22px; }
}

/* --- About page media row --- */
.about-media-row{
  display:flex;
  gap:14px;
  align-items:flex-start;
}

.about-fig{
  margin:0;
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  background:#fff;
}

.about-fig img{
  display:block;
  width:100%;
  object-fit:cover;
}

.about-fig.big{ flex: 1 1 0; }
.about-fig.big img{ height: 240px; }

.about-fig.small{ flex: 0.78 1 0; } /* slightly smaller */
.about-fig.small img{ height: 200px; }

.about-fig figcaption{
  font-size:12.5px;
  color: var(--muted);
  padding:10px 12px;
}

@media (max-width: 980px){
  .about-media-row{ flex-direction:column; }
  .about-fig.big img{ height: 220px; }
  .about-fig.small img{ height: 200px; }
}


/* --- About page floating images --- */
.about-float{
  float:left;
  width:48%;
  max-width:520px;
  margin:6px 26px 18px 0;
  border-radius:10px;
  border:1px solid var(--line);
}

.about-float.small{
  width:38%;
}

@media (max-width: 980px){
  .about-float,
  .about-float.small{
    float:none;
    width:100%;
    margin:0 0 16px 0;
  }
}

/* --- About page text wrap image --- */
.about-text p{
  font-size:16px;
  line-height:1.75;
  margin:0 0 14px;

  clear:none;
}

.about-float-left{
  float:left;
  width:42%;
  max-width:480px;
  margin:4px 24px 16px 0;
  border-radius:10px;
  border:1px solid var(--line);
}

.about-side-img{
  width:100%;
  height:220px;
  object-fit:cover;
  border-radius:10px;
  border:1px solid var(--line);
}

@media (max-width: 980px){
  .about-float-left{
    float:none;
    width:100%;
    margin:0 0 16px 0;
  }
}

/* --- About page floating images refined --- */
.about-text p{
  font-size:16px;
  line-height:1.75;
  margin:0 0 14px;
}

.about-float-left,
.about-float-right{
  border-radius:10px;
  border:1px solid var(--line);
}

.about-float-left.large{
  float:right;
  width:88%;              /* ~doppelt so groß wie vorher */
  max-width:1280px;
  margin:0 0 24px 48px;   /* Abstand links => Text startet links neben Bild */
  border-radius:10px;
  border:1px solid var(--line);
  transform: scaleX(1.05); /* +5% horizontal */
  transform-origin: right center;
}




.about-float-right.small{
  float:right;
  width:34%;
  max-width:360px;
  margin:6px 0 18px 24px;
}

@media (max-width: 980px){
  .about-float-left.large,
  .about-float-right.small{
    float:none;
    width:100%;
    max-width:none;
    margin:0 0 16px 0;
  }
}

/* --- About page text wrap FINAL --- */
.about-text p{
  font-size:16px;
  line-height:1.75;
  margin:0 0 14px;
}

.about-float-left.large{
  float:left;
  width:48%;
  margin:6px 28px 18px 0;
  border-radius:10px;
  border:1px solid var(--line);
  transform: scaleX(1.05);
}

.about-float-right.small{
  float:right;
  width:32%;
  margin:6px 0 18px 24px;
  border-radius:10px;
  border:1px solid var(--line);
}

@media (max-width: 980px){
  .about-float-left.large,
  .about-float-right.small{
    float:none;
    width:100%;
    margin:0 0 16px 0;
    transform:none;
  }
}

.about-text p:first-of-type{ margin-top:0; }

/* --- Über uns: echtes Text-Umfließen --- */
.about-grid{ display:block; } /* falls irgendwo noch vorhanden */

.about-text p{
  font-size:16px;
  line-height:1.75;
  margin:0 0 14px;
  clear:none;
}

/* Büro-Foto: groß, rechts, Text links daneben ab Zeile 1 */
.about-office{
  float:right !important;
  width:54% !important;           /* 50% größer als vorher (36% -> 54%) */
  max-width:840px;
  margin:0 0 22px 32px;           /* oben 0 => Text startet links auf Höhe Oberkante */
  border-radius:10px;
  border:1px solid var(--line);
  transform: scaleX(1.05);
  transform-origin: right center;
}
/* Lager-Foto: kleiner, ebenfalls im Textfluss */
.about-warehouse{
  float:right;
  clear:right;               /* unter Bild 1, weiterhin rechts */
  width:34%;
  max-width:380px;
  margin:0 0 18px 32px;
  border-radius:10px;
  border:1px solid var(--line);
}


@media (max-width: 980px){
  .about-office,
  .about-warehouse{
    float:none !important;
    width:100% !important;
    max-width:none;
    margin:0 0 16px 0;
    transform:none;
  }
}

/* ================= Cookie Banner ================= */
.cookie-banner{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
  background: rgba(17, 24, 39, .35);
  z-index: 9999;
}

.cookie-banner[hidden]{
  display:none !important;
}

.cookie-card{
  width: min(920px, calc(100% - 18px));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.18);
  padding: 18px 18px 16px;
}

.cookie-title{
  font-weight: 900;
  color: var(--blue-dark);
  font-size: 18px;
  margin-bottom: 6px;
}

.cookie-text{
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.cookie-options{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin: 14px 0 14px;
}

.cookie-option{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbfc;
  cursor: pointer;
}

.cookie-option input{
  margin-top: 3px;
  transform: scale(1.1);
}

.cookie-actions{
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.cookie-btn{
  height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  font-weight: 800;
  border: 1px solid #dfe5ec;
  background: #fff;
  color: var(--blue);
  cursor: pointer;
}

.cookie-btn-primary{
  background: var(--green);
  border-color: transparent;
  color: #fff;
}

.cookie-btn-primary:hover{ background: var(--green-hover); }

.cookie-btn-outline:hover{
  background: rgba(111,209,138,.18);
  border-color: rgba(111,209,138,.35);
  color: var(--green);
}

.cookie-btn-ghost{
  background: transparent;
}

.cookie-btn-ghost:hover{
  background: rgba(0,0,0,.04);
}

@media (max-width: 820px){
  .cookie-options{ grid-template-columns: 1fr; }
  .cookie-actions{ justify-content: stretch; }
  .cookie-btn{ width: 100%; }
}
/* =============== /Cookie Banner =============== */

/* Smaller H1 on subpages (landing page unchanged) */
.page-headline{
  font-size:34px !important;
  line-height:1.12;
}
@media (max-width: 980px){
  .page-headline{
    font-size:26px !important;
  }
}

/* ================= Marken & Produkte ================= */
.products-page{
  margin-top: 26px;
}

.products-layout{
  display: grid;
  /* Markenliste nutzt die volle Breite (Textboxen + Bilder wurden vergrößert) */
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
  justify-items: start;
}

/* rechte Textspalte ist auf dieser Seite aktuell leer */
.products-text{ display:none; }

.products-text p{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.products-brands{
  display: flex;
  flex-direction: column;
  gap: 23px;
  align-items: flex-start; /* Bilder linksbündig */
  justify-self: start;
}

.brand-row{
  display: flex;
  align-items: flex-start; /* Textfeld oben bündig mit Foto */
  gap: 23px;
}

.brand-row img{
  width: 541px; /* +30% (von 416px) */
  max-width: 100%;
  height: auto;
  border-radius: 13px;
  border: 1px solid var(--line);
}

.brand-caption{
  /* Textboxen deutlich breiter, damit weniger Zeilenumbrüche entstehen */
  flex: 1 1 585px;
  min-width: 585px;
  padding: 18px 21px;
  border: none;
  border-radius: 13px;
  background: #fafbfc;
  font-weight: 400;           /* Text normal */
  color: var(--blue-dark);
  line-height: 1.35;
}

.brand-caption strong{
  display: block;
  font-weight: 900;           /* Überschrift fett */
  margin: 0 0 8px;
}

.brand-caption .brand-desc{
  font-weight: 400;
  color: var(--muted);
  line-height: 1.55;
}

.brand-caption .brand-link{
  font-weight: 700;
  color: #0b5fff;
  text-decoration: underline;
}


@media (max-width: 980px){
  .products-layout{ grid-template-columns: 1fr; gap: 26px; }
  /* Mobile: weniger „Luft“ zwischen Textbox und nächstem Foto */
  .products-brands{ gap: 12px; }
  .brand-row{ flex-direction: column; align-items: flex-start; gap: 12px; }
  /*
    Wichtig: .brand-caption hat am Desktop "flex: 1 1 585px".
    In der mobilen Spaltenansicht (flex-direction: column) wird "flex-basis: 585px"
    zur Mindest-HÖHE und erzeugt großen Leerraum unter dem Text.
  */
  .brand-caption{ width: 100%; min-width: 0; flex: 0 0 auto; }
}
/* =============== /Marken & Produkte =============== */


/* === Mobile fixes: landing scaling, hero image width, footer two-line === */
@media (max-width: 560px){

  /* Gesamte Landing Page kompakter (Samsung/Chrome/Edge): */
  body{ zoom: 0.9; }

  /* Fallback falls zoom nicht wirkt */
  body.no-zoom-scale{
    transform: scale(0.9);
    transform-origin: top left;
    width: 111.111%;
  }

  /* Hero-Bildcontainer darf mobil nicht "überstehen" */
  .hero-media{
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    overflow: hidden;
  }
  .hero-media img{
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }

  /* Footer bewusst zweizeilig: Copyright-Zeile + Links-Zeile */
  footer .footer-inner{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  footer .footer-links{
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 14px;
  }
}


/* --- Mobile fixes (S24) --- */
@media (max-width: 560px){

  /* Prevent horizontal overflow caused by negative margins */
  html, body{ overflow-x: hidden; }

  /* Landing page overall ~10% smaller (mobile only) */
  body{ zoom: 0.9; }

  /* Remove the "push into image" negative margin on mobile */
  .tagline{ margin-right: 0 !important; }

  /* Hero image must align with USP boxes (no bleed) */
  .hero-media{
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    width: 100% !important;
  }
  .hero-media img{
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  /* USP boxes: full-width so left/right align with hero image */
  .usp-inner{
    align-items: stretch !important;
  }
  .usp{
    width: 100%;
  }

  /* Footer: exactly two lines (copyright + one-line links) */
  footer .footer-inner{
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }
  footer .footer-links{
    display: flex;
    justify-content: center;
    flex-wrap: nowrap !important;
    white-space: nowrap;
    gap: 10px;
    font-size: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  footer .footer-links a{ flex: 0 0 auto; }
}


/* Landing headline helpers */
.headline .hl1, .headline .hl2{ display:inline; }

/* Desktop/laptop: keep landing headline on one line */
@media (min-width: 981px){
  .headline{ white-space: nowrap; }
}


/* ===== Mobile-only fixes (landing + footer) ===== */
@media (max-width: 560px){

  /* Landing headline: no mid-word breaks; allow wrap only between words */
  .headline{
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    text-align: center;
  }
  .headline .hl2{ display:block; }

  /* Footer: two lines, centered copyright line */
  footer{ position: relative; z-index: 10; }
  .footer-inner{
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }
  .footer-copy{
    display:flex;
    align-items:center;
    justify-content:center; /* centered as requested */
    gap: 10px;
    width: 100%;
  }
  .footer-impressum-inline{ display:inline !important; }

  /* Second line: links in one row (scroll if needed) and always clickable */
  .footer-links{
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    pointer-events: auto;
    touch-action: manipulation;
  }
  .footer-links a{
    position: relative;
    z-index: 11;
    pointer-events: auto;
  }
  .footer-links::-webkit-scrollbar{ height:0; }

  /* Hide duplicate impressum link in link-row (Impressum already next to copyright) */
  
}

.footer-impressum-inline{ display:none; }
