/*
Theme Name: Intergast Zentralmarkt
Theme URI: https://www.intergast-zentralmarkt.de
Author: JAEGER – August Jaeger Nachf. GmbH & Co. KG
Author URI: https://www.jaeger.de
Description: Individuelles Theme für den Intergast-Zentralmarkt Osnabrück (Cash & Carry Großhandel). Gestaltung nach der INTERGAST-Kampagne „Wir sind ehrlich regional“ / #VonHierInDeineKüche. Legt bei Aktivierung alle Seiten und Menüs automatisch an.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
License: Proprietär
Text Domain: izm
*/

/* ---------- Design-Tokens (aus dem INTERGAST Guide) ---------- */
:root {
  --navy: #363c6b;
  --navy-dark: #262a4f;
  --teal: #91c4c1;
  --teal-dark: #5f9f9b;
  --teal-light: #e3f0ef;
  --ink: #1f2340;
  --muted: #5b6080;
  --line: #d9dde6;
  --white: #ffffff;
  --bg: #ffffff;
  --radius: 6px;
  --wrap: 1180px;
  --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
  --font-display: "Arial Black", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--teal-dark); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-family: var(--font-display); text-transform: uppercase; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; background: #fff; padding: 8px 14px; clip: auto; width: auto; height: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .9rem;
  border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-dark); color: #fff; }
.btn--teal { background: var(--teal); color: var(--navy-dark); }
.btn--teal:hover { background: #fff; color: var(--navy); }
.btn--ghost { border-color: currentColor; color: #fff; background: transparent; }
.btn--ghost:hover { background: #fff; color: var(--navy); }

/* ---------- Topbar & Header ---------- */
.topbar { background: var(--navy-dark); color: #dfe3f3; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }
.topbar__status { font-weight: 700; }
.topbar__status.is-open { color: var(--teal); }

.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 82px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { max-height: 58px; width: auto; }
.brand__mark {
  width: 46px; height: 46px; flex: none; border-radius: 4px; background: var(--teal);
  position: relative; overflow: hidden;
}
.brand__mark::before { content: ""; position: absolute; left: 12px; top: -6px; width: 5px; height: 64px; background: #fff; transform: rotate(6deg); }
.brand__mark::after { content: ""; position: absolute; left: -6px; bottom: 11px; width: 64px; height: 5px; background: #fff; transform: rotate(-8deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-size: 1.25rem; text-transform: uppercase; letter-spacing: .01em; }
.brand__sub { font-size: .78rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; margin-top: 5px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.main-nav a { display: block; padding: 10px 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; border-radius: 4px; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--navy); background: var(--teal-light); }
.main-nav .menu-cta > a { background: var(--navy); color: #fff; margin-left: 8px; padding: 10px 18px; }
.main-nav .menu-cta > a:hover { background: var(--navy-dark); color: #fff; }
.nav-toggle { display: none; background: none; border: 2px solid var(--navy); color: var(--navy); border-radius: 4px; padding: 8px 12px; font-weight: 700; cursor: pointer; }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); display: none; }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: 10px 20px 18px; gap: 0; }
  .main-nav .menu-cta > a { margin: 8px 0 0; text-align: center; }
}

/* ---------- Hero ---------- */
.hero { background: var(--teal); position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 0; }
.hero__text { padding-bottom: 70px; position: relative; z-index: 2; }
.hero__eyebrow { display: inline-block; background: var(--navy); color: #fff; padding: 5px 12px; font-weight: 700; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; border-radius: 3px; margin-bottom: 18px; }
.hero h1 { color: var(--navy-dark); }
.hero__lead { font-size: 1.2rem; color: var(--navy-dark); max-width: 34em; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero__actions .btn--ghost { color: var(--navy-dark); }
.hero__actions .btn--ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.hero .wrap { padding-bottom: 90px; }
.hero__text { padding-bottom: 0; }
.hero__panel { position: relative; z-index: 2; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 30px 28px; box-shadow: 0 20px 50px rgba(38,42,79,.25); max-width: 420px; margin-left: auto; width: 100%; }
.hero__panel-row { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid rgba(255,255,255,.15); line-height: 1.5; }
.hero__panel-row strong { color: var(--teal); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }
.hero__panel a { color: #fff; }
.hero__panel-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(145,196,193,.18); color: var(--teal); display: grid; place-items: center; }
.hero__panel-icon svg { width: 21px; height: 21px; }
.hero__panel .btn { display: block; text-align: center; }

/* Bestell-Schritte (Lieferservice) */
.order-panel { background: var(--teal-light); border-radius: var(--radius); padding: 34px 30px; border-left: 8px solid var(--teal); }
.order-panel h3 { font-family: var(--font-display); text-transform: uppercase; font-size: 1.3rem; margin-bottom: 22px; }
.order-step { display: flex; gap: 16px; margin-bottom: 20px; }
.order-step:last-child { margin-bottom: 0; }
.order-step__num { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; }
/* Diagonale weiße Linien – Motiv aus dem Key Visual */
.hero::before { content: ""; position: absolute; left: 6%; top: -10%; width: 10px; height: 130%; background: #fff; transform: rotate(5deg); opacity: .9; }
.hero::after { content: ""; position: absolute; left: -5%; bottom: 46px; width: 110%; height: 10px; background: #fff; transform: rotate(-3deg); opacity: .9; }
.hashtag { font-family: var(--font-display); font-style: italic; color: var(--navy); font-size: 1.1rem; letter-spacing: .01em; }
.hashtag b { color: #fff; font-size: 1.6em; margin-right: 2px; text-shadow: 0 0 1px rgba(0,0,0,.05); }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 36px; }
  .hero .wrap { padding-bottom: 70px; }
  .hero__panel { margin: 0; max-width: none; }
  .hero::before { display: none; }
}
@media (max-width: 560px) {
  .brand__name { font-size: 1rem; }
  .brand__sub { font-size: .66rem; letter-spacing: .08em; }
  .brand__mark { width: 38px; height: 38px; }
  .topbar .wrap { font-size: .78rem; gap: 2px 16px; }
}

/* ---------- Infoleiste ---------- */
.infobar { background: var(--navy); color: #fff; }
.infobar .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.infobar__item { padding: 26px 22px; border-right: 1px solid rgba(255,255,255,.15); }
.infobar__item:last-child { border-right: 0; }
.infobar__label { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--teal); font-weight: 700; margin-bottom: 6px; }
.infobar__value { font-size: 1.05rem; font-weight: 600; }
.infobar a { color: #fff; }
@media (max-width: 760px) { .infobar .wrap { grid-template-columns: 1fr; } .infobar__item { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); } }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--tint { background: var(--teal-light); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section__head { max-width: 720px; margin-bottom: 44px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { display: block; color: var(--teal-dark); font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; margin-bottom: 10px; }
.section--navy .kicker { color: var(--teal); }

/* USP-Karten */
.grid { display: grid; gap: 22px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; } }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; position: relative; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.card__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--teal-light); display: grid; place-items: center; margin-bottom: 16px; color: var(--navy); }
.card__icon svg { width: 26px; height: 26px; }

/* Sortiment-Kacheln */
.tile { background: #fff; border-radius: var(--radius); padding: 22px 22px 22px 26px; border-left: 6px solid var(--teal); box-shadow: 0 1px 0 var(--line); }
.tile h3 { font-size: 1.05rem; margin-bottom: .3em; }
.tile p { margin: 0; color: var(--muted); font-size: .93rem; }

/* Split-Layout mit Bild */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 30px; } }
.checklist { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checklist li { padding-left: 34px; position: relative; margin-bottom: 10px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal); }
.checklist li::after { content: ""; position: absolute; left: 7px; top: 8px; width: 5px; height: 9px; border: solid var(--navy-dark); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.section--navy .checklist li::after { border-color: var(--navy-dark); }

/* Zahlen */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 40px; }
.fact__num { font-family: var(--font-display); font-size: 2.4rem; color: var(--teal); line-height: 1; }
.fact__label { color: #cfd3ea; font-size: .95rem; margin-top: 6px; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* Öffnungszeiten-Tabelle */
.hours { width: 100%; border-collapse: collapse; }
.hours td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours td:last-child { text-align: right; font-weight: 700; color: var(--navy); }

/* CTA-Band */
.cta-band { background: var(--teal); position: relative; overflow: hidden; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-top: 54px; padding-bottom: 54px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-band h2 { color: var(--navy-dark); margin: 0 0 .2em; }
.cta-band p { margin: 0; color: var(--navy-dark); font-size: 1.1rem; }
.cta-band::after { content: ""; position: absolute; left: -5%; bottom: 18px; width: 110%; height: 8px; background: #fff; transform: rotate(-2deg); }

/* ---------- Unterseiten ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero p { color: #cfd3ea; margin: 10px 0 0; font-size: 1.1rem; max-width: 40em; }
.page-hero::after { content: ""; position: absolute; right: 10%; top: -20%; width: 8px; height: 150%; background: var(--teal); transform: rotate(8deg); }
.entry { padding: 64px 0 84px; }
.entry .wrap { max-width: 900px; }
.entry h2 { font-size: 1.7rem; margin-top: 1.6em; }
.entry h3 { margin-top: 1.4em; }
.entry ul { padding-left: 1.2em; }
.entry .wp-block-columns { gap: 24px; }
.entry table { width: 100%; border-collapse: collapse; }
.entry td, .entry th { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; }
.entry .is-style-izm-box, .izm-box { background: var(--teal-light); border-left: 6px solid var(--teal); padding: 22px 24px; border-radius: var(--radius); margin: 1.5em 0; }
.alignwide { max-width: 1180px; }

/* ---------- Ansprechpartner ---------- */
.contacts { background: var(--teal-light); padding: 72px 0 84px; }
.contacts__group { font-family: var(--font-display); text-transform: uppercase; font-size: 1.15rem; margin: 34px 0 16px; padding-bottom: 8px; border-bottom: 3px solid var(--teal); display: inline-block; }
.contacts__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.contact-card { background: #fff; border-radius: var(--radius); padding: 16px 18px; border-top: 4px solid var(--teal); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-card__dept { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--teal-dark); }
.contact-card__name { font-weight: 700; color: var(--navy); font-size: 1.05rem; margin-bottom: 4px; }
.contact-card a { text-decoration: none; font-size: .95rem; overflow-wrap: anywhere; }
.contact-card a:hover { text-decoration: underline; }
.entry .contacts { background: none; padding: 30px 0 0; }
.entry .contacts .wrap { padding: 0; }

/* ---------- Formular ---------- */
.izm-form { display: grid; gap: 16px; }
.izm-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .izm-form .row { grid-template-columns: 1fr; } }
.izm-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 5px; }
.izm-form input[type=text], .izm-form input[type=email], .izm-form input[type=tel], .izm-form select, .izm-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #b9bfd0; border-radius: 4px; font: inherit; background: #fff;
}
.izm-form input:focus, .izm-form textarea:focus, .izm-form select:focus { outline: 3px solid var(--teal); border-color: var(--navy); }
.izm-form .consent { font-size: .88rem; display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.izm-form .hp { position: absolute; left: -9999px; }
.izm-notice { padding: 14px 18px; border-radius: 4px; margin-bottom: 18px; font-weight: 600; }
.izm-notice--ok { background: #e2f3e8; color: #1d5c34; }
.izm-notice--err { background: #fbe6e6; color: #8a1f1f; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #cfd3ea; font-size: .95rem; }
.site-footer .wrap { padding-top: 60px; padding-bottom: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; margin-bottom: 14px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; }
.footer-bottom ul { display: flex; gap: 18px; }
.footer-claim { margin-top: 16px; }
