/* ==========================================================================
   H. Obermüller GmbH – global.css
   Alles Seitenübergreifende: Reset, Nav, Footer, Buttons, Cards, etc.
   ========================================================================== */

:root {
  --color-brand:        #C41818;
  --color-brand-dark:   #9A1212;
  --color-brand-light:  #E83030;
  --color-blue:         #4A6DA4;
  --color-blue-dark:    #3A5588;
  --color-blue-light:   #6890C8;
  --color-dark:         #0F172A;
  --color-dark-2:       #1E293B;
  --color-dark-3:       #2D3F5C;
  --color-primary:       #0F172A;
  --color-primary-dark:  #080D1A;
  --color-primary-light: #1E293B;
  --color-accent:        #C41818;
  --color-accent-dark:   #9A1212;
  --color-accent-light:  #E83030;
  --color-bg:           #F7F8FA;
  --color-bg-white:     #ffffff;
  --color-text:         #1F2937;
  --color-text-muted:   #6B7280;
  --color-border:       #E5E7EB;
  --color-success:      #16a34a;
  --color-error:        #dc2626;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08);
  --shadow-lg:    0 12px 32px rgba(0,0,0,0.15), 0 4px 12px rgba(0,0,0,0.10);
  --shadow-brand: 0 4px 16px rgba(196,24,24,0.35);
  --transition:   0.25s ease;
  --max-width:    1200px;
  --nav-height:   72px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-sans); font-size: 1rem; line-height: 1.65; color: var(--color-text); background-color: var(--color-bg); min-height: 100vh; display: flex; flex-direction: column; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; padding-top: var(--nav-height); }
main { flex: 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-brand); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-brand-dark); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.25; color: var(--color-dark); }
h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* Layout */
.container { width: 100%; max-width: var(--max-width); margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: 4rem; }
.section--gray  { background-color: var(--color-bg); }
.section--white { background-color: var(--color-bg-white); }
.section--dark  { background-color: var(--color-dark); color: #fff; }
.section__header { text-align: center; max-width: 700px; margin-inline: auto; margin-bottom: 3rem; }
.section__header h2 { margin-bottom: 0.75rem; }
.section--dark .section__header h2 { color: #fff; }
.section__header p { color: var(--color-text-muted); font-size: 1.1rem; }
.section--dark .section__header p { color: rgba(255,255,255,0.7); }
.section__label { display: inline-block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-brand); margin-bottom: 0.5rem; }

/* Navigation */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: var(--color-dark); height: var(--nav-height); box-shadow: 0 2px 16px rgba(0,0,0,0.25); transition: background var(--transition), box-shadow var(--transition); }
.nav--scrolled { background: var(--color-primary-dark); box-shadow: 0 4px 24px rgba(0,0,0,0.35); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }
.nav__brand { display: flex; flex-direction: row; align-items: center; gap: 0.75rem; color: #fff; font-weight: 700; text-decoration: none; transition: opacity var(--transition); }
.nav__brand:hover { opacity: 0.9; color: #fff; }
.nav__logo { width: 44px; height: 44px; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 0 6px rgba(196,24,24,0.4)); }
.nav__brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav__brand-name { font-size: 1.05rem; color: #fff; font-weight: 700; }
.nav__brand-sub { font-size: 0.68rem; font-weight: 400; color: rgba(255,255,255,0.55); letter-spacing: 0.02em; }
.nav__menu { display: none; flex-direction: column; gap: 0; position: fixed; top: var(--nav-height); left: 0; right: 0; bottom: 0; background: var(--color-primary-dark); padding: 1.5rem; overflow-y: auto; }
.nav__menu.is-open { display: flex; }
.nav__link { display: flex; align-items: center; min-height: 44px; color: rgba(255,255,255,0.82); font-weight: 500; font-size: 1.05rem; padding: 0.7rem 0.75rem; border-bottom: 1px solid rgba(255,255,255,0.07); transition: color var(--transition), background var(--transition); border-radius: var(--radius-sm); }
.nav__link:hover, .nav__link.is-active { color: var(--color-blue-light); background: rgba(255,255,255,0.05); }
.nav__link.is-active { position: relative; }
.nav__dropdown { position: relative; }
.nav__dropdown-toggle { justify-content: space-between; cursor: pointer; position: relative; }
.nav__dropdown-toggle::after { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-left: 0.5rem; transition: transform var(--transition); flex-shrink: 0; }
.nav__dropdown.is-open .nav__dropdown-toggle::after { transform: rotate(-135deg); }
.nav__dropdown-menu { display: none; padding-left: 1rem; }
.nav__dropdown.is-open .nav__dropdown-menu { display: block; }
.nav__dropdown-menu .nav__link { font-size: 0.95rem; color: rgba(255,255,255,0.65); }
.nav__toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: none; border: none; cursor: pointer; padding: 6px; border-radius: var(--radius-sm); transition: background var(--transition); }
.nav__toggle:hover { background: rgba(255,255,255,0.1); }
.nav__toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform var(--transition), opacity var(--transition); }
.nav__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-active span:nth-child(2) { opacity: 0; }
.nav__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav__toggle { display: none; }
  .nav__menu { display: flex; flex-direction: row; position: static; background: none; padding: 0; gap: 0.25rem; overflow: visible; }
  .nav__link { font-size: 0.9rem; padding: 0.5rem 0.75rem; border-bottom: none; min-height: unset; }
  .nav__dropdown-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; background: var(--color-dark-2); border-radius: 0 0 var(--radius-md) var(--radius-md); box-shadow: var(--shadow-lg); padding: 0.75rem 0.5rem; z-index: 100; border-top: 2px solid var(--color-brand); }
  .nav__dropdown:hover .nav__dropdown-menu, .nav__dropdown.is-open .nav__dropdown-menu { display: block; }
  .nav__dropdown-toggle::before { content: ''; position: absolute; bottom: -12px; left: 0; right: 0; height: 12px; }
  .nav__dropdown-menu .nav__link { white-space: nowrap; border-radius: var(--radius-sm); padding: 0.5rem 0.75rem; font-size: 0.875rem; border-bottom: none; }
  .nav__dropdown-toggle::after { width: 6px; height: 6px; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600; line-height: 1; padding: 0.875rem 1.75rem; min-height: 44px; border-radius: var(--radius-md); border: 2px solid transparent; cursor: pointer; transition: all var(--transition); text-decoration: none; white-space: nowrap; }
.btn--primary { background: var(--color-brand); color: #fff; border-color: var(--color-brand); }
.btn--primary:hover { background: var(--color-brand-dark); border-color: var(--color-brand-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-brand); }
.btn--primary:active { transform: translateY(0); box-shadow: none; }
.btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn--outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); color: #fff; }
.btn--outline-dark { background: transparent; color: var(--color-dark); border-color: var(--color-dark-3); }
.btn--outline-dark:hover { background: var(--color-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15,23,42,0.2); }
.btn--white { background: #fff; color: var(--color-blue-dark); border-color: #fff; }
.btn--white:hover { background: rgba(255,255,255,0.92); color: var(--color-blue-dark); transform: translateY(-1px); }
.btn--sm { font-size: 0.85rem; padding: 0.6rem 1.25rem; min-height: 38px; }
.btn--lg { font-size: 1rem; padding: 1rem 2rem; }
.btn:focus-visible { outline: 3px solid var(--color-brand); outline-offset: 3px; }

/* Cards */
.card { background: var(--color-bg-white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--color-border); overflow: hidden; transition: box-shadow var(--transition), transform var(--transition); }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card__body { padding: 1.75rem; }

/* Service Cards */
.services-grid { display: grid; gap: 1.5rem; }
.service-card { background: var(--color-bg-white); border-radius: var(--radius-lg); padding: 2rem; border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition); position: relative; overflow: hidden; }
.service-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--color-brand), var(--color-brand-light)); transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: rgba(196,24,24,0.2); }
.service-card:hover::after { transform: scaleX(1); }
.service-card__icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; flex-shrink: 0; }
.service-card__icon svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.service-card__title { font-size: 1.1rem; font-weight: 700; color: var(--color-dark); margin-bottom: 0.5rem; }
.service-card__text { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.6; margin-bottom: 0; }
@media (min-width: 600px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

/* Feature List */
.feature-list { display: grid; gap: 0.75rem; }
.feature-list__item { display: flex; align-items: flex-start; gap: 0.75rem; font-size: 0.95rem; }
.feature-list__icon { flex-shrink: 0; width: 22px; height: 22px; background: var(--color-brand); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-top: 0.1rem; }
.feature-list__icon svg { width: 12px; height: 12px; stroke: #fff; stroke-width: 2.5; fill: none; }
@media (min-width: 600px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }

/* Two-col */
.two-col { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 768px) {
  .two-col { grid-template-columns: 1fr 1fr; }
  .two-col--reverse .two-col__text { order: 2; }
  .two-col--reverse .two-col__visual { order: 1; }
}
.two-col__visual { background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%); border-radius: var(--radius-xl); padding: 3rem 2rem; display: flex; align-items: center; justify-content: center; min-height: 280px; position: relative; overflow: hidden; transition: transform 0.4s ease, box-shadow 0.4s ease; }
.two-col__visual::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 80% 20%, rgba(196,24,24,0.2), transparent 60%); }
.two-col:hover .two-col__visual { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(74,109,164,0.3); }
.two-col__visual svg { width: 120px; height: 120px; fill: none; stroke: rgba(255,255,255,0.65); stroke-width: 1.5; position: relative; z-index: 1; }

/* Page Hero */
.page-hero { background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-2) 60%, #1a0606 100%); color: #fff; padding-block: 3.5rem 3rem; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 90% 50%, rgba(196,24,24,0.15), transparent 60%); pointer-events: none; }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero__breadcrumb { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.4rem; }
.page-hero__breadcrumb a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.page-hero__breadcrumb a:hover { color: #FF9090; }
.page-hero__breadcrumb span { opacity: 0.4; }
.page-hero h1 { color: #fff; margin-bottom: 0.75rem; }
.page-hero__sub { font-size: 1.05rem; color: rgba(255,255,255,0.7); max-width: 560px; }

/* CTA */
.cta-section { background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-blue-dark) 100%); color: #fff; padding-block: 4rem; text-align: center; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 10% 50%, rgba(255,255,255,0.08), transparent 55%), radial-gradient(ellipse at 90% 50%, rgba(0,0,0,0.12), transparent 50%); pointer-events: none; }
.cta-section h2 { color: #fff; margin-bottom: 1rem; position: relative; }
.cta-section p { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 560px; margin-inline: auto; margin-bottom: 2rem; position: relative; }
.cta-section .btn--outline { border-color: rgba(255,255,255,0.5); position: relative; }
.cta-section .btn--white { background: #fff; color: var(--color-blue-dark); border-color: #fff; position: relative; }
.cta-section .btn--white:hover { background: rgba(255,255,255,0.92); color: var(--color-blue-dark); }

/* Info Cards */
.info-cards { display: grid; gap: 1.5rem; }
@media (min-width: 600px) { .info-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .info-cards { grid-template-columns: repeat(3, 1fr); } }
.info-card { background: var(--color-bg-white); border-radius: var(--radius-lg); padding: 1.75rem; border: 1px solid var(--color-border); border-top: 4px solid var(--color-brand); transition: box-shadow var(--transition), transform var(--transition); }
.info-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.info-card__title { font-size: 1rem; font-weight: 700; color: var(--color-dark); margin-bottom: 0.75rem; }
.info-card__content { font-size: 0.9rem; color: var(--color-text-muted); line-height: 1.65; }

/* FAQ */
.faq-list { max-width: 800px; margin-inline: auto; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--color-bg-white); border-radius: var(--radius-lg); border: 1px solid var(--color-border); overflow: hidden; transition: box-shadow var(--transition); }
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item details[open] { box-shadow: var(--shadow-md); border-color: rgba(196,24,24,0.2); }
.faq-item__question { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem 1.5rem; cursor: pointer; font-weight: 600; color: var(--color-dark); font-size: 1rem; list-style: none; transition: background var(--transition); user-select: none; }
.faq-item__question:hover { background: var(--color-bg); }
.faq-item__question::-webkit-details-marker { display: none; }
.faq-item details[open] .faq-item__question { border-bottom: 1px solid var(--color-border); background: var(--color-bg); }
.faq-item__icon { flex-shrink: 0; width: 20px; height: 20px; color: var(--color-brand); transition: transform var(--transition); }
.faq-item details[open] .faq-item__icon { transform: rotate(180deg); }
.faq-item__answer { padding: 1.25rem 1.5rem; font-size: 0.95rem; color: var(--color-text-muted); line-height: 1.75; }
.faq-item__answer a { color: var(--color-brand); font-weight: 500; }
.faq-item__answer a:hover { text-decoration: underline; }

/* Cookie Banner */
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; background: var(--color-dark-2); color: #fff; padding: 1.25rem 1.5rem; box-shadow: 0 -4px 24px rgba(0,0,0,0.3); transform: translateY(100%); transition: transform 0.4s ease; border-top: 2px solid var(--color-brand); }
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner__inner { display: flex; flex-direction: column; gap: 1rem; max-width: var(--max-width); margin-inline: auto; }
.cookie-banner__text { font-size: 0.875rem; color: rgba(255,255,255,0.8); line-height: 1.6; }
.cookie-banner__text a { color: #FF9090; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.cookie-banner .btn--sm { font-size: 0.8rem; }
@media (min-width: 768px) { .cookie-banner__inner { flex-direction: row; align-items: center; } .cookie-banner__text { flex: 1; } }

/* Footer */
.footer { background: var(--color-dark); color: rgba(255,255,255,0.6); padding-top: 3rem; border-top: 3px solid var(--color-brand); }
.footer__grid { display: grid; gap: 2.5rem; }
@media (min-width: 600px) { .footer__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer__brand-name { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 0.25rem; }
.footer__brand-sub { font-size: 0.8rem; color: rgba(255,255,255,0.4); margin-bottom: 1rem; }
.footer__about { font-size: 0.875rem; line-height: 1.65; margin-bottom: 1.25rem; }
.footer__contact-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; margin-bottom: 0.5rem; }
.footer__contact-item svg { width: 15px; height: 15px; stroke: #FF9090; fill: none; stroke-width: 2; flex-shrink: 0; }
.footer__contact-item a { color: rgba(255,255,255,0.6); }
.footer__contact-item a:hover { color: #FF9090; }
.footer__heading { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 1rem; }
.footer__nav { display: flex; flex-direction: column; gap: 0.6rem; }
.footer__nav a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer__nav a:hover { color: #FF9090; }
.footer__bottom { margin-top: 2.5rem; padding-block: 1.25rem; border-top: 1px solid rgba(255,255,255,0.08); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: 0.8rem; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer__legal a { color: rgba(255,255,255,0.4); }
.footer__legal a:hover { color: #FF9090; }

/* Scroll To Top */
.scroll-top { position: fixed; bottom: 1.5rem; right: 1.5rem; width: 44px; height: 44px; background: var(--color-brand); color: #fff; border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-brand); opacity: 0; transform: translateY(8px); transition: opacity var(--transition), transform var(--transition), background var(--transition); z-index: 800; }
.scroll-top.is-visible { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--color-brand-dark); }
.scroll-top svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2.5; }

/* Accessibility & Helpers */
:focus-visible { outline: 3px solid var(--color-brand); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.text-accent  { color: var(--color-brand); }
.text-muted   { color: var(--color-text-muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0 !important; }
.divider { width: 56px; height: 4px; background: var(--color-brand); border-radius: 2px; margin-bottom: 1.5rem; }
.divider--center { margin-inline: auto; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Animationen */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
main > section, main > div { animation: fadeInUp 0.45s ease both; }
main > section:nth-child(1), main > div:nth-child(1) { animation-delay: 0.05s; }
main > section:nth-child(2), main > div:nth-child(2) { animation-delay: 0.12s; }
main > section:nth-child(3), main > div:nth-child(3) { animation-delay: 0.18s; }
main > section:nth-child(n+4) { animation-delay: 0.22s; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

/* Mobile */
@media (max-width: 480px) {
  .container { padding-inline: 1rem; }
  .section { padding-block: 3rem; }
  .service-card { padding: 1.5rem; }
  .info-card { padding: 1.25rem; }
  .faq-item__question { padding: 1rem 1.25rem; font-size: 0.95rem; }
  .faq-item__answer { padding: 1rem 1.25rem; }
  .nav__logo { width: 36px; height: 36px; }
  .nav__brand-sub { display: none; }
}

/* Print */
@media print {
  .nav, .cookie-banner, .scroll-top, .cta-section { display: none !important; }
  body { font-size: 12pt; color: #000; background: #fff; }
  a { color: #000; text-decoration: underline; }
  .footer { background: #fff; color: #000; border-top: 2px solid #ccc; }
  .footer__brand-name, .footer__heading, .footer__nav a, .footer__contact-item, .footer__about { color: #000 !important; }
}
