:root {

  /* --- Brand colours --- */
  --color-brand:        #c84a00;  /* Primary orange: topbar, breadcrumb, buttons */
  --color-brand-hover:  #a83d00;  /* Darker orange on hover                       */
  --color-link:         #c84a00;  /* Inline hyperlink colour                       */

  /* --- Text colours --- */
  --color-text:         #212529;  /* Main body text          */
  --color-text-muted:   #666666;  /* Secondary / caption text */
  --color-text-subtle:  #444444;  /* h4 headings              */

  /* --- Solid colours --- */
  --color-white:        #ffffff;
  --color-black:        #000000;

  /* --- Background colours --- */
  --color-bg:           #ffffff;  /* Default page background                          */
  --color-bg-light:     #f0f0f0;  /* Light grey band (home service grid, inner pages) */
  --color-bg-tint:      #fff4ee;  /* Very light orange tint (address boxes)           */
  --color-bg-subtle:    #fff8f5;  /* Near-white (callout boxes)                       */

  /* --- Border colours --- */
  --color-border:       #dddddd;  /* Header underline, general dividers    */
  --color-border-light: #f0f0f0;  /* Mobile nav item separators            */
  --color-border-muted: #e8d0c0;  /* Notice box outline                    */
  --color-border-rule:  #f0ddd0;  /* Thin rule under h2 on text pages      */

  /* --- Footer --- */
  --color-footer-bg:    #222222;  /* Footer background                 */
  --color-footer-text:  #cccccc;  /* Footer text and link colour       */
  --color-footer-sep:   #666666;  /* Separator pipes between footer links */

  /* --- Image slider --- */
  --color-slider-btn-bg:    rgba(255, 255, 255, 0.70);
  --color-slider-btn-hover: rgba(255, 255, 255, 0.95);
  --color-dot:              rgba(255, 255, 255, 0.50);
  --color-dot-active:       #ffffff;

  /* --- Forms --- */
  --color-form-bg:       #ffffff;
  --color-form-border:   #cccccc;
  --color-form-focus:    #c84a00;
  --color-form-notice:   #c84a00;  /* Warning/notice box background */
  --color-label:         #333333;

}


/* -------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif,
               "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);

  /* Sticky footer */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

p {
  font-size: 1rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: var(--color-link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* -------------------------------------------------------------
   3. TOPBAR  (orange strip above the header)
   ------------------------------------------------------------- */

.topbar {
  background: var(--color-brand);
  color: var(--color-white);
  font-size: 0.8125rem;
  padding: 6px 0;
}

.topbar .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
}

.topbar a {
  color: var(--color-white);
}

.topbar a:hover {
  text-decoration: underline;
}

.topbar .topbar-icon {
  margin-right: 4px;
}


/* -------------------------------------------------------------
   4. HEADER & NAVIGATION
   ------------------------------------------------------------- */

header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 70px;
}

/* Logo */
.logo img {
  height: 56px;
  width: auto;
}

/* Logo fallback text (shown when image fails to load) */
.logo-fallback {
  display: inline-block;
  line-height: 1;
}

.logo-fallback .logo-main {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  display: block;
}

.logo-fallback .logo-hey {
  color: var(--color-brand);
}

.logo-fallback .logo-com {
  color: #1a1f5e;  /* dark navy, matching the real logo */
}

.logo-fallback .logo-sub {
  font-size: 0.6rem;
  color: var(--color-text-muted);
  display: block;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Primary nav */
nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex: 1;
}

nav > a,
nav > .dropdown > a {
  color: var(--color-text);
  padding: 8px 8px;
  white-space: nowrap;
  display: inline-block;
}

nav > a:hover,
nav > a.active,
nav > .dropdown > a:hover,
nav > .dropdown > a.active {
  color: var(--color-brand);
  text-decoration: none;
}

/* Dropdown wrapper */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-top: 2px solid var(--color-brand);
  min-width: 220px;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu a {
  display: block;
  padding: 9px 16px;
  font-size: 0.875rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border-light);
  white-space: nowrap;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: var(--color-bg-light);
  color: var(--color-brand);
  text-decoration: none;
}

/* Dropdown caret */
.dropdown > a::after {
  content: " ▾";
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Mobile hamburger button (hidden on desktop) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
}


/* -------------------------------------------------------------
   5. BREADCRUMB BAR  (orange bar below header on inner pages)
   ------------------------------------------------------------- */

.breadcrumb-bar {
  background: var(--color-brand);
  padding: 10px 0;
}

.breadcrumb-bar .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 0.875rem;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 6px;
}

.breadcrumb-bar a {
  color: var(--color-white);
}

.breadcrumb-bar a:hover {
  text-decoration: underline;
}

.breadcrumb-bar .sep {
  opacity: 0.7;
}


/* -------------------------------------------------------------
   6. IMAGE SLIDER  (homepage hero)
   ------------------------------------------------------------- */

.slider {
  position: relative;
  overflow: hidden;
  background: var(--color-black);
  line-height: 0;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;
}

.slide img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

/* Prev / Next arrow buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-slider-btn-bg);
  border: none;
  cursor: pointer;
  width: 36px;
  height: 60px;
  font-size: 1.25rem;
  color: var(--color-text);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.slider-btn:hover {
  background: var(--color-slider-btn-hover);
}

.slider-btn.prev { left: 0; }
.slider-btn.next { right: 0; }

/* Dot indicators */
.slider-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-dot);
  border: none;
  cursor: pointer;
}

.dot.active {
  background: var(--color-dot-active);
}


/* -------------------------------------------------------------
   7. HOME — SERVICE GRID
   ------------------------------------------------------------- */

/* Grows to push footer down (sticky footer) */
.main-content {
  flex: 1;
  background: var(--color-bg-light);
  padding: 40px 0 60px;
}

.content-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.services-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.service-col {
  text-align: center;
}

.service-col h3 {
  font-size: 1.125rem;
  font-weight: normal;
  color: var(--color-text);
  margin-bottom: 12px;
}

.service-col img {
  width: 100%;
  margin-bottom: 10px;
}

.service-col p {
  color: var(--color-text);
  text-align: left;
  line-height: 1.5;
  margin-bottom: 6px;
}

.service-col .mehr {
  font-size: 0.875rem;
  color: var(--color-link);
}

.service-col .mehr:hover {
  text-decoration: underline;
}


/* -------------------------------------------------------------
   8. INNER PRODUCT PAGES  (image left, text right)
   ------------------------------------------------------------- */

/* Grows to push footer down (sticky footer) */
.page-content {
  flex: 1;
  background: var(--color-bg-light);
  padding: 40px 0 80px;
}

.page-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Two-column grid: image left, text right */
.page-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: start;
}

.page-image img {
  width: 100%;
  display: block;
}

.page-text h2 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.page-text h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 16px;
}

.page-text p {
  color: var(--color-text);
  margin-bottom: 12px;
  line-height: 1.6;
}

.page-text ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.page-text ul li {
  color: var(--color-text);
  margin-bottom: 4px;
  list-style: disc;
}

/* CTA / action button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-brand);
  color: var(--color-white);
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  margin-top: 8px;
}

.btn-primary:hover {
  background: var(--color-brand-hover);
  color: var(--color-white);
  text-decoration: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-brand);
  color: var(--color-white);
  padding: 10px 20px;
  font-size: 0.9375rem;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  margin-top: 12px;
}

.btn-secondary:hover {
  background: var(--color-brand-hover);
  color: var(--color-white);
  text-decoration: none;
}


/* -------------------------------------------------------------
   9. CONTACT PAGE  (two-column: form left, address right)
   ------------------------------------------------------------- */

/* Grows to push footer down (sticky footer) */
.contact-page {
  flex: 1;
  background: var(--color-bg-light);
  padding: 40px 0 80px;
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-inner h1 {
  font-size: 1.625rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 28px;
}

/* Two-column grid */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* Address / company info column */
.contact-address {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--color-text);
}

.contact-address p {
  margin-bottom: 10px;
}

.contact-address strong {
  display: block;
  margin-top: 16px;
  margin-bottom: 2px;
  font-weight: 600;
}

.contact-address a {
  color: var(--color-link);
}

.contact-address em {
  font-style: italic;
}


/* -------------------------------------------------------------
   10. FORMS
   ------------------------------------------------------------- */

.form-wrapper {
  background: var(--color-form-bg);
  padding: 0;
}

/* Orange warning notice above forms */
.form-notice {
  background: var(--color-form-notice);
  color: var(--color-white);
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: 2px;
}

.form-notice p {
  margin-bottom: 6px;
}

.form-notice p:last-child {
  margin-bottom: 0;
}

.form-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 16px;
}

/* Intro text above form on Kündigen page */
.form-intro {
  margin-bottom: 20px;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-label);
  margin-bottom: 4px;
}

.form-group label .required {
  color: var(--color-brand);
  margin-left: 2px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--color-text);
  background: var(--color-form-bg);
  border: 1px solid var(--color-form-border);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-form-focus);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group .hint {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: 3px;
}

.btn-submit {
  display: block;
  width: 100%;
  background: var(--color-brand);
  color: var(--color-white);
  padding: 12px;
  font-size: 1rem;
  font-family: inherit;
  font-weight: 500;
  border: none;
  cursor: pointer;
  border-radius: 2px;
  margin-top: 8px;
}

.btn-submit:hover {
  background: var(--color-brand-hover);
}

/* Success / error messages after form submit */
.form-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
  padding: 14px 18px;
  border-radius: 2px;
  margin-bottom: 20px;
  font-size: 0.9375rem;
}

.form-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 14px 18px;
  border-radius: 2px;
  margin-bottom: 20px;
  font-size: 0.9375rem;
}


/* -------------------------------------------------------------
   11. DOWNLOADS PAGE
   ------------------------------------------------------------- */

/* Grows to push footer down (sticky footer) */
.downloads-page {
  flex: 1;
  background: var(--color-bg-light);
  padding: 40px 0 80px;
}

.downloads-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.downloads-section {
  margin-bottom: 36px;
}

.downloads-section h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--color-border);
}

.downloads-section p {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.download-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.download-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-light);
  font-size: 0.9375rem;
}

.download-list li:last-child {
  border-bottom: none;
}

.download-list a {
  color: var(--color-link);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.download-list a::before {
  content: "↓";
  font-weight: 700;
}

.download-list a:hover {
  text-decoration: underline;
}

.download-list .no-link {
  color: var(--color-text-muted);
  font-style: italic;
}

.downloads-cta {
  margin-top: 32px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}

.downloads-cta a {
  color: var(--color-link);
}


/* -------------------------------------------------------------
   12. GENERIC TEXT PAGES  (Impressum, Datenschutz, AGB)
   ------------------------------------------------------------- */

.section {
  flex: 1;
  padding: 48px 20px 64px;
  background: var(--color-bg);
}

.section > .prose {
  margin: 0 auto;
}

.prose {
  max-width: 800px;
  font-size: 1rem;
  color: var(--color-text);
}

.prose h1 {
  font-size: 1.625rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 28px;
}

.prose h2 {
  font-size: 1rem;
  font-weight: bold;
  color: var(--color-brand);
  margin: 24px 0 8px;
}

.prose p {
  margin-bottom: 10px;
  line-height: 1.7;
}

.prose a {
  color: var(--color-link);
}

/* Datenschutz-specific */
.datenschutz-section {
  flex: 1;
  padding: 48px 20px 64px;
  background: var(--color-bg);
}

.datenschutz-prose {
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.75;
}

.datenschutz-prose h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-brand);
  margin: 40px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--color-border-rule);
}

.datenschutz-prose h2:first-child {
  margin-top: 0;
}

.datenschutz-prose h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-brand);
  margin: 24px 0 8px;
}

.datenschutz-prose h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-subtle);
  margin: 18px 0 6px;
}

.datenschutz-prose p {
  margin-bottom: 12px;
}

.datenschutz-prose address {
  font-style: normal;
  background: var(--color-bg-tint);
  border-left: 3px solid var(--color-brand);
  padding: 14px 18px;
  border-radius: 0 4px 4px 0;
  margin-bottom: 16px;
  line-height: 1.8;
}

.datenschutz-prose address a {
  color: var(--color-link);
}

.datenschutz-prose ul {
  margin: 8px 0 14px 24px;
  padding: 0;
}

.datenschutz-prose ul li {
  margin-bottom: 6px;
}

.datenschutz-prose a {
  color: var(--color-link);
}

.dsgvo-notice {
  background: var(--color-bg-subtle);
  border: 1px solid var(--color-border-muted);
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 16px;
  font-size: 0.8125rem;
  line-height: 1.65;
}

.dsgvo-notice p {
  margin-bottom: 10px;
}

.dsgvo-notice p:last-child {
  margin-bottom: 0;
}


/* -------------------------------------------------------------
   13. FOOTER
   ------------------------------------------------------------- */

footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  font-size: 0.8125rem;
  padding: 18px 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-logo img {
  height: 36px;
  width: auto;
  opacity: 0.8;
}

.footer-links a {
  color: var(--color-footer-text);
}

.footer-links a:hover {
  color: var(--color-white);
  text-decoration: underline;
}

.footer-links .sep {
  margin: 0 5px;
  color: var(--color-footer-sep);
}


/* -------------------------------------------------------------
   14. RESPONSIVE / MOBILE
   ------------------------------------------------------------- */

/* Tablet */
@media (max-width: 960px) {
  .services-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-layout {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .services-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .dropdown {
    width: 100%;
  }

  nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 10px 0;
    z-index: 99;
  }

  nav.open {
    display: flex;
  }

  nav > a,
  nav > .dropdown > a {
    padding: 10px 20px;
    border-bottom: 1px solid var(--color-border-light);
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    border: none;
    box-shadow: none;
    border-top: none;
    background: var(--color-bg-light);
  }

  .dropdown-menu a {
    padding-left: 32px;
  }

  .hamburger {
    display: flex;
  }

  .topbar .inner {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.75rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 420px) {
  .services-row {
    grid-template-columns: 1fr;
  }
}
