/*  Eusotec GmbH - Website Stylesheet
 *  Copyright Eusotec GmbH. All rights reserved.
 *  Hinweis: Die alte style.css bleibt unverändert erhalten (wird evtl. noch von /data/... verwendet).
 */

/* ---------- Design Tokens ---------- */
:root {
  --navy-950: #071631;
  --navy-900: #0b1f42;
  --navy-800: #122d5c;
  --navy-700: #1a3d78;
  --navy-100: #e6ecf6;
  --navy-50:  #f2f5fb;
  --accent:   #e2481c;   /* Logo-Quadrat */
  --accent-600: #c63b13;
  --accent-50: #fdf0eb;

  --bg:       #f6f8fb;
  --surface:  #ffffff;
  --text:     #1b2430;
  --muted:    #5a6676;
  --line:     #e2e7ef;
  --success:  #1d7a4d;
  --success-50: #e8f5ee;
  --danger:   #b42318;
  --danger-50: #fdecea;

  --radius:   14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(11,31,66,.06);
  --shadow:   0 1px 2px rgba(11,31,66,.05), 0 8px 24px -10px rgba(11,31,66,.14);
  --container: 1160px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; border: 0; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(226,72,28,.45); outline-offset: 2px;
}
h1, h2, h3, h4 { color: var(--navy-900); line-height: 1.25; margin: 0 0 .6em; letter-spacing: -.01em; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
b, strong { font-weight: 650; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy-900); color: #fff; padding: 8px 14px; z-index: 1000; }
.skip-link:focus { left: 8px; top: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; flex-direction: column; line-height: 1; color: var(--navy-900); text-decoration: none !important; flex-shrink: 0; }
.brand-word { font-size: 1.7rem; font-weight: 700; letter-spacing: -.03em; display: inline-flex; align-items: flex-start; }
.brand-word .sq { width: .32em; height: .32em; background: var(--accent); margin: .42em 0 0 .08em; display: inline-block; }
.brand-word sup { font-size: .38em; font-weight: 600; margin: .05em 0 0 .15em; color: var(--navy-800); }
.brand-tag { font-size: .7rem; letter-spacing: .06em; color: var(--muted); margin-top: 4px; text-transform: lowercase; }
.brand:hover { color: var(--navy-900); }

.main-nav { margin-left: auto; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; }
.nav-list > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  font: inherit; font-size: .95rem; font-weight: 550; color: var(--text);
  background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav-link:hover { background: var(--navy-50); color: var(--navy-900); text-decoration: none; }
.nav-link.active { color: var(--accent); }
.nav-link .chev { width: 10px; height: 10px; transition: transform .2s; }
.has-sub.open .chev { transform: rotate(180deg); }
.submenu {
  list-style: none; margin: 0; padding: 8px;
  position: absolute; left: 0; top: calc(100% + 6px); min-width: 270px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); display: none;
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -8px; height: 8px; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.open .submenu { display: block; }
.submenu a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--text); font-size: .95rem; }
.submenu a:hover { background: var(--navy-50); color: var(--navy-900); text-decoration: none; }
.submenu a.active { color: var(--accent); font-weight: 600; }

.lang-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-left: 10px; }
.lang-switch a, .lang-switch span { padding: 4px 11px; border-radius: 999px; font-size: .8rem; font-weight: 650; letter-spacing: .04em; color: var(--muted); }
.lang-switch span { background: var(--navy-900); color: #fff; }
.lang-switch a:hover { color: var(--navy-900); background: var(--navy-50); text-decoration: none; }

.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 11px; cursor: pointer; color: var(--navy-900); }
.nav-toggle svg { width: 22px; height: 22px; display: block; }

/* ---------- Page Hero ---------- */
.page-hero {
  background:
    radial-gradient(1000px 300px at 85% -40%, rgba(226,72,28,.28), transparent 60%),
    linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff; padding: 56px 0 52px;
}
.page-hero .kicker { display: inline-block; font-size: .78rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: #ffb59c; margin-bottom: 12px; }
.page-hero h1 { color: #fff; font-size: clamp(1.75rem, 3.6vw, 2.6rem); margin: 0; max-width: 900px; }
.page-hero .lead { color: rgba(255,255,255,.82); font-size: 1.12rem; margin: 14px 0 0; max-width: 760px; }
.page-hero.home { padding: 72px 0 64px; }
.page-hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- Sections & Layout ---------- */
main { display: block; }
.section { padding: 56px 0; }
.section + .section { padding-top: 0; }
.section-title { margin-bottom: 24px; }
.section-title .eyebrow { display: block; font-size: .78rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-aside { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.stack > * + * { margin-top: 24px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.card > :last-child { margin-bottom: 0; }
.card h2 { font-size: 1.35rem; }
.card-media { display: flex; align-items: center; justify-content: center; background: var(--navy-50); border-radius: var(--radius-sm); padding: 18px; margin-bottom: 18px; min-height: 150px; }
.card-media img { max-height: 190px; width: auto; border-radius: 4px; }
a.card { display: block; color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #cdd6e4; text-decoration: none; color: var(--text); }
a.card .more { color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

.media-row { display: flex; gap: 28px; align-items: flex-start; }
.media-row .media { flex: 0 0 auto; }
.media-row .media img { border-radius: var(--radius-sm); }
.media-row .body { flex: 1; min-width: 0; }

.float-right { float: right; margin: 0 0 16px 24px; border-radius: var(--radius-sm); }
.float-left { float: left; margin: 0 24px 16px 0; border-radius: var(--radius-sm); }
.clearfix::after { content: ""; display: table; clear: both; }

/* ---------- Lists ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 1em; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .38em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e2481c' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/11px no-repeat;
}
.check-list.cols-2 { columns: 2; column-gap: 40px; }
.check-list.cols-2 li { break-inside: avoid; }
.dot-list { padding-left: 1.2em; margin: 0 0 1em; }
.dot-list li { margin-bottom: 6px; }
.dot-list li::marker { color: var(--accent); }

.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { border-top: 1px solid var(--line); }
.link-list li:first-child { border-top: 0; }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 2px; font-weight: 550; }
.link-list a::after { content: "\2192"; color: var(--muted); flex-shrink: 0; transition: transform .15s; }
.link-list a:hover { text-decoration: none; }
.link-list a:hover::after { transform: translateX(3px); color: var(--accent); }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1em; }
.tag-list li { background: var(--navy-50); border: 1px solid var(--navy-100); color: var(--navy-800); border-radius: 999px; padding: 6px 14px; font-size: .92rem; }

/* ---------- Components ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 10px; font: inherit; font-weight: 600; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; text-decoration: none !important; transition: background .15s, transform .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-600); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }
.btn-outline { background: var(--surface); color: var(--navy-900); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy-700); color: var(--navy-900); }

.notice { display: flex; gap: 14px; align-items: flex-start; border-radius: var(--radius); padding: 16px 20px; margin: 0 0 24px; border: 1px solid; }
.notice svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.notice p:last-child { margin-bottom: 0; }
.notice-danger { background: var(--danger-50); border-color: #f5c2bd; color: #7a1a12; }
.notice-danger svg { color: var(--danger); }
.notice-info { background: var(--navy-50); border-color: var(--navy-100); color: var(--navy-900); }
.notice-success { background: var(--success-50); border-color: #b9dfc9; color: #11522f; }
.text-danger { color: var(--danger); font-weight: 650; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; }
.badge-danger { background: var(--danger-50); color: var(--danger); }
.badge-accent { background: var(--accent-50); color: var(--accent-600); }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

.price-tag { font-size: 1.05rem; }

/* Kennzahlen-Leiste */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: -32px; position: relative; box-shadow: var(--shadow); }
.facts div { background: var(--surface); padding: 20px 22px; }
.facts strong { display: block; font-size: 1.35rem; color: var(--navy-900); }
.facts span { color: var(--muted); font-size: .9rem; }

/* Referenzen */
.ref-list { display: grid; gap: 16px; }
.ref { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.ref-logo { display: flex; align-items: center; justify-content: center; min-height: 80px; background: #fff; border-radius: var(--radius-sm); }
.ref-logo img { max-height: 70px; width: auto; }
.ref-logo .ref-name { font-weight: 700; color: var(--navy-800); text-align: center; }
.ref h3 { margin-bottom: .35em; font-size: 1.08rem; }
.ref p { margin: 0; color: #364152; }

.quote-list { display: grid; gap: 14px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); padding: 16px 20px; margin: 0; }
.quote p { margin: 0 0 6px; }
.quote cite { font-style: normal; font-weight: 650; color: var(--navy-800); font-size: .93rem; }

.station-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.station-list a { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; height: 100%; color: var(--text); }
.station-list a::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.station-list a:hover { border-color: var(--navy-700); text-decoration: none; color: var(--navy-900); }

/* Shop */
.product { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 32px; }
.product-media { background: var(--navy-50); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; padding: 20px; align-self: start; min-height: 160px; }
.product h2 { font-size: 1.35rem; }
.product .sub { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; margin-top: 8px; }
.product h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.buy-box { margin-top: 24px; background: var(--navy-50); border: 1px solid var(--navy-100); border-radius: var(--radius); padding: 22px 24px; }
.buy-box .field { margin-bottom: 14px; }
.buy-box .fine { margin: 14px 0 0; font-size: .9rem; color: var(--muted); }
.paypal-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 18px; }
.field label, .field .label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 6px; color: var(--navy-900); }
input[type=text], input[type=email], select, textarea {
  width: 100%; max-width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: #fff; border: 1px solid #cfd7e3; border-radius: var(--radius-sm); padding: 11px 13px;
  transition: border-color .15s, box-shadow .15s;
}
input[type=text]:focus, select:focus, textarea:focus { border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(26,61,120,.15); outline: none; }
textarea { min-height: 220px; resize: vertical; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.captcha-box { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; background: var(--navy-50); border: 1px solid var(--navy-100); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 18px; }
.captcha-box img { cursor: pointer; border-radius: 6px; background: #fff; border: 1px solid var(--line); }
.captcha-box .captcha-input { flex: 1; min-width: 220px; }
.captcha-box input { max-width: 200px; }
.captcha-box p { margin: 0 0 8px; font-size: .9rem; color: var(--muted); }

/* ---------- Legal text ---------- */
.prose { max-width: 860px; }
.prose h2 { font-size: 1.25rem; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: #2b3644; }
.legal-text { font-size: .97rem; }
.legal-text h3 { font-size: 1.05rem; margin: 1.6em 0 .5em; }
.address-block { font-style: normal; line-height: 1.7; }
dl.meta { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
dl.meta dt { color: var(--muted); }
dl.meta dd { margin: 0; font-weight: 550; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: rgba(255,255,255,.72); margin-top: 72px; padding: 52px 0 28px; font-size: .94rem; }
.site-footer a { color: rgba(255,255,255,.86); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.site-footer .brand-word sup { color: rgba(255,255,255,.7); }
.site-footer .brand-tag { color: rgba(255,255,255,.55); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: rgba(255,255,255,.5); }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: calc(100vh - 72px); overflow-y: auto;
  }
  .site-header.nav-open .main-nav { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; padding: 12px 16px 18px; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list > li:last-child { border-bottom: 0; padding-top: 14px; }
  .nav-link { width: 100%; justify-content: space-between; padding: 14px 6px; border-radius: 0; }
  .has-sub:hover .submenu, .has-sub:focus-within .submenu { display: none; }
  .has-sub.open .submenu { display: block; }
  .submenu { position: static; box-shadow: none; border: 0; padding: 0 0 10px 10px; min-width: 0; }
  .lang-switch { margin-left: 0; }
  .grid-aside { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .grid-2, .grid-3, .product .sub { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ref, .product { grid-template-columns: 1fr; gap: 18px; }
  .ref-logo { justify-content: flex-start; min-height: 0; }
  .station-list { grid-template-columns: 1fr; }
  .check-list.cols-2 { columns: 1; }
  .media-row { flex-direction: column; }
  .float-right, .float-left { float: none; margin: 0 0 16px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .section { padding: 40px 0; }
  .card { padding: 22px 18px; }
  .page-hero { padding: 40px 0 38px; }
  .footer-grid { grid-template-columns: 1fr; }
  .brand-word { font-size: 1.45rem; }
  .brand-tag { display: none; }
}
@media print {
  .site-header, .site-footer, .nav-toggle { display: none; }
  .page-hero { background: none; color: #000; padding: 0 0 16px; }
  .page-hero h1, .page-hero .lead { color: #000; }
  body { background: #fff; }
  .card { box-shadow: none; }
}

/* ---------- Webentwicklung ---------- */
.service-item h3 { margin: 0; font-size: 1.12rem; line-height: 1.4; }
.service-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--accent-50); color: var(--accent); margin-bottom: 18px; }
.service-icon svg { width: 26px; height: 26px; }
.cta-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-card h2 { font-size: 1.3rem; margin-bottom: .4em; }
.cta-card p { margin: 0; }
