/* IMS-Webseite V3 - keine externen Dateien, kein JavaScript. Farben aus dem Logo (Orange #F04E23, Grau #4A4A4A). */
:root {
  --ink: #23262b;
  --ink-soft: #4d535c;
  --line: #e4e6e9;
  --bg: #ffffff;
  --bg-alt: #f5f6f7;
  --brand: #f04e23;        /* Orange aus dem Logo - nur Flächen/Akzente, für Text zu hell */
  --brand-dark: #b8350f;   /* Orange für Text und Buttons (Kontrast >= 4.5:1 zu Weiß) */
  --gray: #4a4a4a;         /* Grau aus dem Schriftzug */
  --radius: 10px;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--brand-dark); }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
section { padding: 72px 0; }
section.alt { background: var(--bg-alt); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; color: var(--ink); }
h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 650; letter-spacing: -0.02em; }
h2 { font-size: clamp(24px, 2.8vw, 32px); font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 16px; color: var(--ink-soft); }
.lead { font-size: 20px; max-width: 720px; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-dark); margin-bottom: 10px; }
.small { font-size: 14px; }
.mt { margin-top: 48px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* Kopf */
.site-head { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.logo img { width: 135px; height: auto; }
.site-head nav { display: flex; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.site-head nav a { color: var(--ink); text-decoration: none; font-size: 15px; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-head nav a:hover { color: var(--brand-dark); }
.site-head nav a.active { color: var(--brand-dark); border-bottom-color: var(--brand); font-weight: 600; }
.head-actions { display: flex; align-items: center; gap: 16px; }
.lang { font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.lang:hover { color: var(--brand-dark); }

/* Buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 8px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--brand-dark); color: #fff; }
.btn-primary:hover { background: #9c2c0b; }
.btn-light { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--brand); color: var(--brand-dark); }
.site-head .btn { padding: 9px 16px; font-size: 15px; }
.more { font-weight: 600; text-decoration: none; }
.more::after { content: " →"; }

/* Einstieg Startseite */
.hero { padding: 0; }
/* Bilder: eigene Fotoserie IMS (Broschüre, IMS_nnn.JPG) - terminal 125, rail 052, trucking 135, customs 197, company 003, contact 223, green 061 */
.hero-terminal { background: linear-gradient(90deg, rgba(20,22,26,.86) 0%, rgba(20,22,26,.62) 55%, rgba(20,22,26,.25) 100%), url("/img/terminal.jpg") center 35% / cover no-repeat; }
.hero .wrap { min-height: 520px; display: flex; align-items: center; }
.hero-text { max-width: 640px; padding: 72px 0; }
.hero h1, .hero p { color: #fff; }
.hero .eyebrow { color: #ffb59e; }
.hero .lead { color: rgba(255,255,255,.88); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* Seitenkopf der Unterseiten */
.page-head { padding: 64px 0 44px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.page-head .lead { margin-bottom: 0; }
.page-head.with-image { background-size: cover; background-position: center; border-bottom: none; }
.page-head.with-image h1, .page-head.with-image p { color: #fff; }
.page-head.with-image .eyebrow { color: #ffb59e; }
.page-head.with-image .lead { color: rgba(255,255,255,.9); }
.img-rail { background-image: linear-gradient(90deg, rgba(20,22,26,.85), rgba(20,22,26,.45)), url("/img/rail.jpg"); }
.img-customs { background-image: linear-gradient(90deg, rgba(20,22,26,.85), rgba(20,22,26,.45)), url("/img/customs.jpg"); }
.img-trucking { background-image: linear-gradient(90deg, rgba(20,22,26,.85), rgba(20,22,26,.35)), url("/img/trucking.jpg"); }
.page-head.img-trucking { background-position: center 60%; }
.page-head.img-contact { background-image: linear-gradient(90deg, rgba(20,22,26,.85), rgba(20,22,26,.4)), url("/img/contact.jpg"); }
.img-company {background-position: center 22%; }   /* IMS-Logo am Glas */
.page-head.img-green { background-position: center 8%; }       /* Windrad über dem Kran */
.img-company {background-image: linear-gradient(90deg, rgba(20,22,26,.85), rgba(20,22,26,.45)), url("/img/company.jpg"); }
.img-green { background-image: linear-gradient(90deg, rgba(14,40,10,.85), rgba(14,40,10,.35)), url("/img/green.jpg"); }

/* Karten und Raster */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p:last-child { margin-bottom: 0; }
.link-card { display: block; text-decoration: none; color: inherit; border-top: 4px solid var(--brand); transition: box-shadow .15s; }
.link-card:hover { box-shadow: 0 12px 30px -14px rgba(0,0,0,.25); }
.link-card h3::after { content: " →"; color: var(--brand-dark); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.mod-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.mod-item { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius); padding: 24px; }
.mod-item p { font-size: 16px; }
.mod-item p:last-child { margin-bottom: 0; }
.mod-item ul { margin: 0; padding-left: 20px; color: var(--ink-soft); font-size: 15px; }
.mod-item li { margin-bottom: 4px; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist.cols { columns: 2; column-gap: 40px; }
.checklist li { position: relative; padding: 0 0 12px 30px; color: var(--ink-soft); break-inside: avoid; }
.checklist li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 14px; height: 8px; border-left: 2px solid var(--brand-dark); border-bottom: 2px solid var(--brand-dark); transform: rotate(-45deg); }
.hint { background: var(--bg-alt); border-left: 3px solid var(--brand); border-radius: 6px; padding: 16px 20px; font-size: 16px; color: var(--ink-soft); margin-top: 28px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 20px; background: rgba(240,78,35,.1); color: var(--brand-dark); margin-left: 8px; }

/* Zeitleiste */
.timeline { list-style: none; margin: 24px 0 0; padding: 0 0 0 22px; border-left: 2px solid var(--brand); }
.timeline li { position: relative; padding: 0 0 16px 12px; color: var(--ink-soft); }
.timeline li::before { content: ""; position: absolute; left: -29px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; }
.timeline b { color: var(--ink); margin-right: 8px; }

/* Kontakt */
.offices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.office { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.office.main { border-top: 4px solid var(--brand); }
.office h2 { font-size: 21px; }
.contact-band { background: var(--gray); }
.contact-band h2, .contact-band p { color: #fff; }
.contact-band p { opacity: .9; }
.contact-band .two-col { align-items: center; }
.contact-box { background: rgba(255,255,255,.08); border-radius: var(--radius); padding: 24px 28px; line-height: 1.9; color: #fff; }
.contact-box a { color: #fff; }

/* News */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tabs a { padding: 7px 14px; border-radius: 20px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-size: 15px; }
.tabs a.active { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.news-list { max-width: 860px; }
.news-item { padding: 26px 0; border-bottom: 1px solid var(--line); }
.news-item h2 { font-size: 23px; margin-bottom: 10px; }
.news-item h2 a { color: var(--ink); text-decoration: none; }
.news-item h2 a:hover { color: var(--brand-dark); }
.news-meta { font-size: 14px; color: var(--ink-soft); margin-bottom: 8px; }
.news-meta .tag:first-child { margin-left: 0; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--brand-dark); }
.news-text p, .news-text li { color: var(--ink); }
.news-text ul, .news-text ol { color: var(--ink); margin: 0 0 16px; }
.news-text .back { margin-top: 40px; }
.pager { display: flex; gap: 24px; align-items: center; justify-content: center; margin-top: 32px; font-size: 15px; }

/* Formulare */
.form { max-width: 560px; }
.form label { display: block; font-weight: 600; margin-bottom: 6px; }
.form input[type=email], .form input[type=text] { width: 100%; padding: 11px 13px; border: 1px solid #b9bec5; border-radius: 8px; font: inherit; margin-bottom: 18px; }
.form input:focus { border-color: var(--brand-dark); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink-soft); font-size: 15px; margin-bottom: 20px; }
.form .check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 8px; padding: 16px 20px; margin-bottom: 20px; }
.notice.ok { background: #edf7ec; border-left: 4px solid #2e7d32; }
.notice.error { background: #fdeeea; border-left: 4px solid var(--brand-dark); color: var(--ink); }
.notice h2 { font-size: 21px; margin-bottom: 8px; }

/* Rechtliches */
.legal { max-width: 820px; }
.legal h2 { font-size: 21px; margin: 36px 0 10px; }
.legal p { font-size: 16px; }
.facts { display: grid; grid-template-columns: 240px 1fr; gap: 10px 24px; margin: 0 0 16px; font-size: 16px; }
.facts dt { font-weight: 600; color: var(--ink); }
.facts dd { margin: 0; color: var(--ink-soft); }

/* Fuß */
.site-foot { padding: 36px 0; font-size: 14px; color: var(--ink-soft); border-top: 1px solid var(--line); }
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: flex-start; }
.foot-brand b { color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--ink-soft); text-decoration: none; }
.foot-links a:hover { color: var(--brand-dark); }
.foot-copy { margin-left: auto; }

@media (max-width: 960px) {
  .site-head .wrap { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 12px 20px; }
  .site-head nav { order: 3; width: 100%; margin-left: 0; gap: 6px 18px; }
  .head-actions { margin-left: auto; }
  .grid3, .two-col, .mod-list, .offices { grid-template-columns: 1fr; gap: 24px; }
  .checklist.cols { columns: 1; }
  .hero .wrap { min-height: 420px; }
  section { padding: 56px 0; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .logo img { width: 110px; }
  .site-head .btn { padding: 7px 12px; font-size: 14px; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 12px; }
  .foot-copy { margin-left: 0; }
}
