
:root {
  --brand: #F4B400; --brand-dark: #C89400; --brand-tint: #FFF8E1;
  --ink: #1E1E1E; --ink-2: #2A2A2A;
  --text: #2E2E2E; --text-2: #555555; --muted: #888888;
  --line: #DDDDDD; --line-2: #EAEAEA;
  --page: #FFFFFF; --page-2: #F3F3F1; --card: #FFFFFF;
  --success-bg: #E6F1E4; --success-fg: #2E6B2E;
  --sale-bg: #EAF1F8; --sale-fg: #235A87;
  --danger: #A62020;
  --radius: 5px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 1px 3px rgba(0,0,0,.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--page); color: var(--text); font-size: 15.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button { font-family: inherit; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; display: block; }
h1 { font-size: 34px; color: var(--ink); margin: 0 0 12px; font-weight: 700; line-height: 1.15; letter-spacing: -.5px; }
h2 { font-size: 24px; color: var(--ink); margin: 0 0 20px; font-weight: 700; line-height: 1.2; letter-spacing: -.3px; }
h3 { font-size: 18px; color: var(--ink); margin: 0 0 8px; font-weight: 700; }
h4 { font-size: 15px; color: var(--ink); margin: 12px 0 6px; font-weight: 700; }
p { margin: 0 0 12px; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); } .small { font-size: 13px; }

/* Topbar */
.topbar { background: var(--ink); color: #C8C8C8; font-size: 13px; padding: 6px 0; }
.topbar-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.topbar a { color: #C8C8C8; display: inline-flex; align-items: center; gap: 5px; }
.topbar a:hover { color: #fff; }
.topbar a i { font-size: 14px; color: var(--brand); }
.topbar .sep { color: #555; }

/* Header */
.header { background: #fff; border-bottom: 2px solid var(--brand); position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 4px rgba(0,0,0,.04); }
.header-inner { display: flex; align-items: center; height: 76px; gap: 32px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 52px; width: auto; display: block; }
.logo-img:hover { opacity: .85; }
.mainnav { display: flex; gap: 4px; margin-left: auto; }
.mainnav a { padding: 8px 14px; color: var(--text); font-weight: 700; font-size: 14.5px; border-radius: 4px; text-transform: uppercase; letter-spacing: .3px; }
.mainnav a:hover { background: var(--brand-tint); color: var(--brand-dark); }
.mainnav a.active { background: var(--ink); color: #fff; }
.mainnav a.active:hover { background: var(--ink); color: #fff; }
.header-cta { background: var(--brand); color: var(--ink); font-weight: 700; padding: 9px 16px; border-radius: 4px; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--brand-dark); }
.header-cta:hover { background: var(--brand-dark); color: var(--ink); }
.header-cta i { font-size: 16px; }

/* Hero */
.hero { position: relative; background: #1E1E1E; color: #fff; overflow: hidden; }
.hero-bg-grid { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; z-index: 0; }
.hero-bg-grid > div { position: relative; overflow: hidden; background: #2A2A2A; }
.hero-bg-grid img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(15%) contrast(1.08) brightness(.85); }
.hero-bg-overlay { position: absolute; inset: 0; background: linear-gradient(115deg, rgba(20,20,20,.92) 0%, rgba(20,20,20,.75) 45%, rgba(30,25,10,.65) 70%, rgba(244,180,0,.15) 100%); z-index: 1; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(45deg, transparent 0, transparent 60px, rgba(244,180,0,.05) 60px, rgba(244,180,0,.05) 120px); pointer-events: none; z-index: 2; }
.hero-inner { position: relative; padding: 80px 24px 100px; z-index: 3; max-width: 1180px; margin: 0 auto; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: var(--ink); font-weight: 700; font-size: 12.5px; padding: 5px 12px; border-radius: 3px; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 20px; }
.hero-eyebrow i { font-size: 15px; }
.hero h1 { color: #fff; font-size: 46px; max-width: 720px; line-height: 1.1; letter-spacing: -1px; margin-bottom: 18px; }
.hero h1 span { color: var(--brand); }
.hero-sub { font-size: 18px; color: #CFCFCF; max-width: 620px; margin-bottom: 32px; line-height: 1.5; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-hero-primary { background: var(--brand); color: var(--ink); font-weight: 700; font-size: 16px; padding: 14px 26px; border-radius: 4px; border: 2px solid var(--brand-dark); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-family: inherit; }
.btn-hero-primary:hover { background: var(--brand-dark); color: var(--ink); }
.btn-hero-primary i { font-size: 20px; }
.btn-hero-outline { background: transparent; color: #fff; font-weight: 700; font-size: 15px; padding: 13px 22px; border-radius: 4px; border: 2px solid #fff; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-family: inherit; }
.btn-hero-outline:hover { background: #fff; color: var(--ink); }
.hero-trust { display: flex; gap: 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid #444; color: #CFCFCF; font-size: 14px; flex-wrap: wrap; }
.hero-trust b { color: var(--brand); font-weight: 700; }

/* Sections */
.section { padding: 60px 0; }
.section-alt { background: var(--page-2); }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 30px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { margin-bottom: 4px; }
.section-head .sub { color: var(--muted); font-size: 15px; }
.section-head .link { color: var(--ink); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .3px; display: inline-flex; align-items: center; gap: 4px; }
.section-head .link:hover { color: var(--brand-dark); }

/* Kategorien-Grid */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 16px; text-align: center; cursor: pointer; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
.cat-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.cat-icon { width: 60px; height: 60px; background: var(--brand-tint); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.cat-icon i { font-size: 30px; color: var(--brand-dark); }
.cat-name { font-weight: 700; font-size: 14.5px; color: var(--ink); margin-bottom: 3px; }
.cat-count { font-size: 12px; color: var(--muted); }

/* Maschinen-Karten */
.machine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.machine-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.machine-card:hover { border-color: var(--brand); box-shadow: var(--shadow); }
.machine-thumb { aspect-ratio: 4/3; background: linear-gradient(135deg, #F5F5F0 0%, #E8E7E0 100%); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line-2); position: relative; overflow: hidden; }
.machine-thumb i { font-size: 72px; color: #999; }
.machine-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.machine-thumb .badge-tag { position: absolute; top: 10px; left: 10px; background: var(--ink); color: #fff; padding: 3px 9px; border-radius: 3px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; z-index: 2; }
.machine-thumb .badge-tag.sale { background: var(--sale-fg); }
.machine-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.machine-cat { font-size: 11.5px; text-transform: uppercase; color: var(--muted); font-weight: 700; letter-spacing: .5px; margin-bottom: 5px; }
.machine-title { font-weight: 700; font-size: 16px; color: var(--ink); line-height: 1.3; margin-bottom: 8px; min-height: calc(1.3em * 2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.machine-price { font-weight: 700; color: var(--brand-dark); font-size: 17px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; }
.machine-price .cta { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .3px; }
.machine-card:hover .machine-price .cta { color: var(--brand-dark); }

/* Sale-Section */
.sale-section { background: linear-gradient(135deg, #F4F7FB 0%, #EAF1F8 100%); padding: 60px 0; border-top: 1px solid #D5E3EF; border-bottom: 1px solid #D5E3EF; }
.sale-section .section-head h2 { color: var(--sale-fg); }
.sale-section .machine-card { border-color: #C5D6E5; }
.sale-section .machine-card:hover { border-color: var(--sale-fg); }
.sale-section .machine-price { color: var(--sale-fg); }

/* Kontakt-Streifen */
.contact-strip { background: var(--ink); color: #fff; padding: 50px 0; }
.contact-strip .container { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; }
.contact-strip h3 { color: #fff; margin-bottom: 12px; }
.contact-strip .cs-icon { width: 40px; height: 40px; background: var(--brand); color: var(--ink); border-radius: 4px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.contact-strip .cs-icon i { font-size: 22px; }
.contact-strip a { color: var(--brand); font-weight: 700; }
.contact-strip a:hover { color: #FFD866; }
.contact-strip .cs-info { color: #CFCFCF; font-size: 14px; line-height: 1.7; }

/* Footer */
.footer { background: #141414; color: #A0A0A0; padding: 40px 0 20px; font-size: 13.5px; }
.footer-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.footer h4 { color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 12px; }
.footer a { color: #A0A0A0; display: block; margin-bottom: 6px; }
.footer a:hover { color: var(--brand); }
.footer-bottom { border-top: 1px solid #2A2A2A; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #666; font-size: 12.5px; }
.footer-bottom a { display: inline; margin-right: 16px; }

/* Detailseite */
.detail { padding: 30px 0 60px; }
.breadcrumb { color: var(--muted); font-size: 13px; margin-bottom: 24px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb i { font-size: 14px; }
.detail-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.gallery-main { aspect-ratio: 4/3; background: linear-gradient(135deg, #F5F5F0 0%, #DDDCD3 100%); border: 1px solid var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.gallery-main i { font-size: 160px; color: #999; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.gallery-thumb { aspect-ratio: 4/3; background: linear-gradient(135deg, #F5F5F0 0%, #DDDCD3 100%); border: 1px solid var(--line); border-radius: 4px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.gallery-thumb.active { border: 2px solid var(--brand); }
.gallery-thumb i { font-size: 28px; color: #AAA; }
.detail-info h1 { font-size: 28px; margin-bottom: 6px; }
.detail-cat { color: var(--muted); text-transform: uppercase; font-weight: 700; font-size: 12px; letter-spacing: .6px; margin-bottom: 4px; }
.detail-short { color: var(--text-2); font-size: 15px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.detail-price-box { background: var(--brand-tint); border-left: 4px solid var(--brand); padding: 16px 20px; border-radius: 3px; margin-bottom: 24px; }
.detail-price-box .from { font-size: 12px; color: var(--muted); text-transform: uppercase; font-weight: 700; letter-spacing: .3px; }
.detail-price-box .price { font-size: 32px; font-weight: 700; color: var(--ink); line-height: 1.1; margin: 2px 0; }
.detail-price-box .note { font-size: 13px; color: var(--text-2); }
.detail-tech { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.detail-tech-row { display: grid; grid-template-columns: 130px 1fr; padding: 9px 14px; font-size: 14px; border-top: 1px solid var(--line-2); }
.detail-tech-row:first-child { border-top: none; }
.detail-tech-row b { color: var(--muted); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .3px; align-self: center; }
.detail-description { margin-bottom: 30px; }
.detail-description h2 { font-size: 20px; margin-bottom: 14px; }
.detail-description-body { background: #fff; border-left: 3px solid var(--line); padding: 6px 18px; font-size: 15px; color: var(--text); }
.detail-description-body p { margin: 8px 0; }
.detail-description-body ul, .detail-description-body ol { margin: 8px 0; padding-left: 22px; }
.detail-description-body li { margin-bottom: 3px; }
.detail-description-body h4 { font-size: 15px; color: var(--ink); margin: 12px 0 4px; }
.detail-description-body strong { font-weight: 700; color: var(--ink); }

/* Contact-Block Detailseite */
.contact-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin-top: 30px; }
.contact-block h2 { font-size: 22px; margin-bottom: 4px; }
.contact-block .sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.contact-block-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: start; }
.form-row { margin-bottom: 12px; }
.form-row label { display: block; font-size: 12px; font-weight: 700; color: var(--ink); text-transform: uppercase; letter-spacing: .3px; margin-bottom: 5px; }
.form-row input, .form-row textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 3px; font: inherit; font-size: 14.5px; background: #fff; color: var(--text); }
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--brand); border-color: var(--brand); outline-offset: -1px; }
.form-row textarea { resize: vertical; min-height: 100px; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-consent { font-size: 12.5px; color: var(--muted); margin: 12px 0 16px; display: flex; gap: 8px; align-items: start; }
.form-consent input { margin-top: 3px; }
.form-submit { background: var(--brand); color: var(--ink); border: 1px solid var(--brand-dark); padding: 12px 24px; border-radius: 4px; font-weight: 700; font-size: 15px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.form-submit:hover { background: var(--brand-dark); }
.contact-alt { background: var(--page-2); border-radius: var(--radius); padding: 22px; }
.contact-alt h3 { font-size: 14px; text-transform: uppercase; color: var(--muted); letter-spacing: .5px; margin-bottom: 14px; font-weight: 700; }
.contact-alt-item { padding: 10px 0; border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: start; }
.contact-alt-item:first-of-type { border-top: none; padding-top: 0; }
.contact-alt-item i { color: var(--brand-dark); font-size: 20px; margin-top: 2px; flex-shrink: 0; }
.contact-alt-item .l { font-size: 11.5px; text-transform: uppercase; color: var(--muted); font-weight: 700; letter-spacing: .3px; margin-bottom: 2px; }
.contact-alt-item .v { font-size: 15px; color: var(--ink); font-weight: 700; }
.contact-alt-item .v a { color: var(--ink); }
.contact-alt-item .v a:hover { color: var(--brand-dark); }
.contact-alt-item .v small { font-weight: 400; color: var(--muted); font-size: 12.5px; }

/* Sale-Detail */
.sale-price-box { background: var(--sale-bg); border-left: 4px solid var(--sale-fg); }
.sale-price-box .price { color: var(--sale-fg); }
.sale-condition-badge { display: inline-block; background: var(--sale-fg); color: #fff; padding: 3px 10px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; border-radius: 3px; margin-bottom: 8px; }

/* Kategorie-Seite */
.cat-header { background: var(--page-2); padding: 40px 0 30px; border-bottom: 1px solid var(--line); }
.cat-header .container { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.cat-header h1 { margin-bottom: 4px; }
.cat-header .sub { color: var(--muted); font-size: 15px; }

/* Über uns */
.about-hero { padding: 50px 0 30px; }
.about-hero h1 { font-size: 40px; max-width: 720px; }
.about-hero .lead { font-size: 18px; color: var(--text-2); max-width: 720px; line-height: 1.6; margin-bottom: 20px; }
.about-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: start; padding: 20px 0 60px; }
.about-photo { aspect-ratio: 4/5; background: var(--page-2); border-radius: var(--radius); overflow: hidden; position: relative; border: 1px solid var(--line); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.about-text h2 { font-size: 22px; }
.about-text p { color: var(--text-2); line-height: 1.7; }
.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.about-fact { background: var(--page-2); border-left: 3px solid var(--brand); padding: 14px 18px; border-radius: 3px; }
.about-fact .n { font-size: 24px; font-weight: 700; color: var(--ink); line-height: 1; margin-bottom: 4px; }
.about-fact .l { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; font-weight: 600; }

/* Range-Datepicker */
.daterange { position: relative; }
.daterange-inputs { display: grid; grid-template-columns: 1fr 32px 1fr; align-items: stretch; border: 1px solid var(--line); border-radius: 3px; background: #fff; overflow: hidden; }
.daterange-input { background: transparent; border: none; padding: 8px 12px; text-align: left; cursor: pointer; font-family: inherit; }
.daterange-input:hover { background: #FAFAF8; }
.daterange-input .l { font-size: 10.5px; font-weight: 700; text-transform: uppercase; color: var(--muted); letter-spacing: .5px; margin-bottom: 2px; }
.daterange-input .v { font-size: 14.5px; color: var(--ink); font-weight: 700; }
.daterange-input .v.empty { color: var(--muted); font-weight: 400; }
.daterange-arrow { display: flex; align-items: center; justify-content: center; color: var(--muted); background: var(--page-2); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.cal-popup { position: absolute; top: calc(100% + 6px); left: 0; max-width: 340px; width: 340px; background: #fff; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 50; padding: 12px; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cal-nav-btn { background: transparent; border: 1px solid var(--line); color: var(--ink); padding: 4px 10px; border-radius: 3px; cursor: pointer; font-family: inherit; font-size: 14px; }
.cal-nav-btn:hover { background: var(--brand-tint); border-color: var(--brand); }
.cal-title { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-weekday { text-align: center; padding: 6px 0 4px; font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .3px; }
.cal-day { text-align: center; padding: 8px 0; font-size: 13.5px; cursor: pointer; border: 1px solid transparent; border-radius: 3px; background: transparent; color: var(--ink); font-family: inherit; }
.cal-day:hover:not(.disabled) { background: var(--brand-tint); border-color: var(--brand); }
.cal-day.disabled { color: #DDD; cursor: not-allowed; }
.cal-day.today { border-color: var(--ink); font-weight: 700; }
.cal-day.weekend:not(.disabled):not(.range-start):not(.range-end):not(.in-range) { color: #A62020; }
.cal-day.in-range { background: var(--brand-tint); }
.cal-day.range-start, .cal-day.range-end { background: var(--brand); color: var(--ink); font-weight: 700; border-color: var(--brand-dark); }
.cal-hint { font-size: 12px; color: var(--muted); text-align: center; padding: 8px 0 4px; border-top: 1px solid var(--line-2); margin-top: 8px; display: flex; justify-content: space-between; align-items: center; }
.cal-clear { color: var(--danger); font-weight: 700; cursor: pointer; background: none; border: none; font-size: 12.5px; font-family: inherit; }
.cal-clear:hover { text-decoration: underline; }

/* Zahlungsmethode */
.pay-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pay-card { position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: 3px; padding: 14px 12px 12px; cursor: pointer; text-align: center; display: block; }
.pay-card:hover { border-color: var(--ink); }
.pay-card.selected { border-color: var(--brand-dark); background: var(--brand-tint); }
.pay-card.selected::after { content: "✓"; position: absolute; top: 4px; right: 8px; color: var(--ink); font-weight: 700; font-size: 14px; }
.pay-card i { font-size: 26px; color: var(--ink); margin-bottom: 6px; display: block; }
.pay-card .n { font-weight: 700; font-size: 13.5px; color: var(--ink); margin-bottom: 2px; }
.pay-card .d { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.pay-card input { display: none; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 500; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-panel { background: #fff; border-radius: var(--radius); max-width: 480px; width: 100%; padding: 32px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.4); border-top: 4px solid var(--brand); }
.modal-icon { width: 60px; height: 60px; background: var(--success-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; color: var(--success-fg); }
.modal-icon i { font-size: 32px; }
.modal-panel h3 { font-size: 22px; margin: 0 0 8px; color: var(--ink); }
.modal-lead { color: var(--text-2); margin-bottom: 20px; font-size: 15px; }
.modal-flow { text-align: left; background: var(--page-2); border-radius: 4px; padding: 14px; margin-bottom: 22px; }
.modal-flow-item { display: flex; gap: 12px; padding: 8px 0; align-items: start; }
.modal-flow-item + .modal-flow-item { border-top: 1px solid var(--line); }
.modal-flow-num { flex-shrink: 0; width: 22px; height: 22px; background: var(--brand); color: var(--ink); border-radius: 50%; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.modal-flow-item b { display: block; font-weight: 700; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.modal-flow-note { font-size: 12.5px; color: var(--muted); }

@media (max-width: 900px) {
  .container { padding: 0 16px; }
  .hero-inner { padding: 50px 20px 60px; }
  .hero h1 { font-size: 32px; }
  .hero-bg-grid { grid-template-columns: 1fr; grid-template-rows: repeat(4, 1fr); }
  .hero-bg-overlay { background: linear-gradient(180deg, rgba(20,20,20,.9) 0%, rgba(20,20,20,.85) 100%); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .machine-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .contact-strip .container { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: 1fr; }
  .contact-block-grid { grid-template-columns: 1fr; }
  .about-layout { grid-template-columns: 1fr; }
  .mainnav { display: none; }
  .topbar-inner .sep, .topbar-inner .hide-mobile { display: none; }
  .logo-img { height: 40px; }
}
@media (max-width: 560px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .machine-grid { grid-template-columns: 1fr; }
  h1 { font-size: 26px; } .hero h1 { font-size: 26px; }
  .section { padding: 40px 0; }
  .form-two { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr; }
  .pay-cards { grid-template-columns: 1fr; }
  .pay-card { display: flex; text-align: left; padding: 12px; gap: 12px; align-items: center; }
  .pay-card i { margin: 0; }
  .cal-popup { max-width: 100%; }
}

/* FAQ-Sektion */
.faq-section { padding: 60px 0; background: #fff; }
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; text-align: left; background: transparent; border: none; padding: 18px 0; font-family: inherit; font-size: 17px; font-weight: 700; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.faq-question:hover { color: var(--brand-dark); }
.faq-question i { color: var(--muted); font-size: 22px; flex-shrink: 0; transition: transform .18s; }
.faq-item.open .faq-question i { transform: rotate(180deg); color: var(--brand-dark); }
.faq-answer { display: none; padding: 0 40px 20px 0; color: var(--text-2); font-size: 15px; line-height: 1.65; }
.faq-item.open .faq-answer { display: block; }

/* Blog Übersicht + Detail */
.blog-header { background: var(--page-2); padding: 50px 0 30px; border-bottom: 1px solid var(--line); }
.blog-header h1 { font-size: 36px; margin-bottom: 8px; }
.blog-header .sub { color: var(--text-2); font-size: 16px; max-width: 620px; }
.blog-cat-filter { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.blog-cat-btn { padding: 6px 14px; border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 3px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; }
.blog-cat-btn:hover { border-color: var(--ink); }
.blog-cat-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.blog-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; cursor: pointer; }
.blog-card:hover { border-color: var(--brand); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.blog-card-thumb { aspect-ratio: 16/10; background: linear-gradient(135deg, #F5F5F0 0%, #E8E7E0 100%); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line-2); position: relative; }
.blog-card-thumb i { font-size: 56px; color: #999; }
.blog-card-cat { position: absolute; top: 12px; left: 12px; background: var(--ink); color: #fff; padding: 3px 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; border-radius: 3px; }
.blog-card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.blog-card-meta { font-size: 12px; color: var(--muted); margin-bottom: 8px; display: flex; gap: 10px; }
.blog-card-title { font-weight: 700; font-size: 18px; color: var(--ink); line-height: 1.35; margin: 0 0 10px; }
.blog-card-excerpt { color: var(--text-2); font-size: 14px; line-height: 1.55; flex: 1; }
.blog-card-read { color: var(--brand-dark); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .3px; margin-top: 14px; }

/* Blog-Detail */
.blog-detail { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.blog-detail-header { padding: 40px 0 20px; text-align: center; }
.blog-detail-header .cat-tag { display: inline-block; background: var(--brand); color: var(--ink); padding: 4px 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; border-radius: 3px; margin-bottom: 16px; }
.blog-detail-header h1 { font-size: 38px; line-height: 1.2; max-width: 720px; margin: 0 auto 16px; }
.blog-detail-header .meta { color: var(--muted); font-size: 14px; display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.blog-detail-header .meta i { font-size: 15px; vertical-align: -2px; margin-right: 3px; color: var(--brand-dark); }
.blog-detail-hero { aspect-ratio: 21/9; background: linear-gradient(135deg, #F5F5F0 0%, #DDDCD3 100%); border: 1px solid var(--line); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin: 20px 0 30px; max-width: 1000px; margin-left: auto; margin-right: auto; }
.blog-detail-hero i { font-size: 100px; color: #999; }
.blog-detail-lead { font-size: 19px; line-height: 1.55; color: var(--text-2); font-weight: 500; padding: 20px 24px; border-left: 3px solid var(--brand); background: var(--brand-tint); border-radius: 3px; margin-bottom: 30px; }
.blog-content { font-size: 17px; line-height: 1.7; color: var(--text); padding-bottom: 40px; }
.blog-content h2 { font-size: 26px; margin: 34px 0 14px; }
.blog-content h3 { font-size: 20px; margin: 26px 0 10px; }
.blog-content p { margin: 0 0 18px; }
.blog-content ul, .blog-content ol { margin: 0 0 18px; padding-left: 26px; }
.blog-content li { margin-bottom: 6px; }
.blog-content strong { color: var(--ink); font-weight: 700; }
.blog-content a { color: var(--brand-dark); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(200,148,0,.4); text-underline-offset: 3px; }
.blog-content a:hover { text-decoration-color: var(--brand-dark); }
.blog-content blockquote { border-left: 4px solid var(--brand); background: var(--brand-tint); padding: 14px 20px; margin: 20px 0; font-style: italic; color: var(--text); border-radius: 3px; }

.blog-cta { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px 32px; margin: 30px 0; }
.blog-cta h3 { color: #fff; font-size: 20px; margin: 0 0 8px; }
.blog-cta p { color: #CFCFCF; font-size: 15px; margin-bottom: 16px; }
.blog-cta .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.blog-cta a { color: var(--ink); }

.blog-author { display: flex; gap: 16px; align-items: center; padding: 20px 0; margin: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.blog-author-avatar { width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #333 0%, #1E1E1E 100%); display: flex; align-items: center; justify-content: center; color: #666; }
.blog-author-avatar i { font-size: 28px; }
.blog-author-name { font-weight: 700; color: var(--ink); }
.blog-author-role { color: var(--muted); font-size: 13px; }

.blog-related { background: var(--page-2); padding: 60px 0; margin-top: 40px; }
.blog-related h2 { text-align: center; margin-bottom: 30px; }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-detail-header h1 { font-size: 28px; }
}
@media (max-width: 560px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-detail-header h1 { font-size: 24px; }
  .blog-content { font-size: 16px; }
  .blog-detail-lead { font-size: 16px; padding: 14px 16px; }
}


/* ═══ Ergänzungen für PHP-Backend ═══ */
.flash { padding: 12px 16px; border-radius: 4px; margin: 16px 0; display: flex; align-items: center; gap: 10px; font-weight: 500; }
.flash-ok    { background: #E6F1E4; color: #2E6B2E; border-left: 4px solid #2E6B2E; }
.flash-error { background: #FEE2E2; color: #7F1D1D; border-left: 4px solid #DC2626; }
.form-error  { color: #A62020; font-size: 13px; margin-top: 4px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state i { font-size: 48px; display: block; margin-bottom: 16px; color: var(--brand); }

/* Bildergalerie in Detail-Views (falls Bilder aus DB) */
.detail-gallery-main img { width: 100%; height: auto; display: block; border-radius: var(--radius); }
.detail-gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.detail-gallery-thumbs img { width: 80px; height: 60px; object-fit: contain; background: #F5F5F0; border: 2px solid transparent; cursor: pointer; border-radius: 3px; }
.detail-gallery-thumbs img.active, .detail-gallery-thumbs img:hover { border-color: var(--brand); }

/* Page-Header für legal.php und 404.php (analog cat-header) */
.page-header { padding: 32px 0; background: #FAFAF9; border-bottom: 1px solid var(--line-2); margin-bottom: 32px; }
.page-header h1 { font-size: 28px; margin: 6px 0 0; }
.page-header .sub { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* Hero mit einzelnem Hintergrund-Bild (statt Grid) */
.hero-bg-single { position: absolute; inset: 0; overflow: hidden; z-index: 1; }
.hero-bg-single img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }

/* ═════════════════════════════════════════════════════════════════════
   Lightbox — Vollbild-Overlay für Bild-Ansicht
   ═════════════════════════════════════════════════════════════════════ */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 40px;
    animation: lightboxFadeIn .18s ease;
}
#lightbox.open { display: flex; }
@keyframes lightboxFadeIn { from { opacity: 0; } to { opacity: 1; } }

#lightbox .lb-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    box-shadow: 0 10px 40px rgba(0,0,0,.5);
    cursor: default;
}

#lightbox .lb-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255,255,255,.1);
    color: #fff;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background .15s;
    font-family: inherit;
}
#lightbox .lb-close:hover { background: rgba(255,255,255,.25); }

#lightbox .lb-prev,
#lightbox .lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.1);
    color: #fff;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    font-family: inherit;
}
#lightbox .lb-prev { left: 20px; }
#lightbox .lb-next { right: 20px; }
#lightbox .lb-prev:hover, #lightbox .lb-next:hover { background: rgba(255,255,255,.25); }

#lightbox .lb-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    background: rgba(0,0,0,.5);
    padding: 6px 14px;
    border-radius: 16px;
    letter-spacing: .5px;
}

/* Cursor-Hinweis auf Bildern die Lightbox öffnen */
#gallery-main-img:hover { opacity: .95; }

/* Mobile: Kleinere Buttons, weniger Padding */
@media (max-width: 640px) {
    #lightbox { padding: 8px; }
    #lightbox .lb-close { top: 8px; right: 8px; width: 40px; height: 40px; font-size: 24px; }
    #lightbox .lb-prev, #lightbox .lb-next { width: 44px; height: 44px; font-size: 18px; }
    #lightbox .lb-prev { left: 4px; }
    #lightbox .lb-next { right: 4px; }
}
