/* Hamburger menu toggle - hidden on tablet/desktop, visible on mobile */
@media (min-width: 700px) {
  .menu-toggle { display: none; }
}
/* Keep global stylesheet clean: mobile visibility and stacking handled in the
  mobile media query later. Avoid top-level !important overrides which can
  interfere with other pages. */
/* anchor offset so #preise isn't hidden under the navbar */
#preise { scroll-margin-top: 76px; }
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
/* smooth in-page scrolling for anchor links */
html { scroll-behavior: smooth; }
/* anchor offset so #preise isn't hidden under the navbar */
#preise { scroll-margin-top: 76px; }
/* Hamburger menu toggle - hidden on tablet/desktop, visible on mobile */
@media (min-width: 700px) {
  .menu-toggle { display: none; }
}

/* Final visibility overrides to help with stacking/clipping issues */
.menu-toggle { z-index: 2147483646 !important; visibility: visible !important; }
.hamburger span, .hamburger:before, .hamburger:after { background: #fff !important; }
.landing-navbar-actions.open { overflow: visible !important; }
.lang-dropdown-list { z-index: 2147483645 !important; overflow: visible !important; width: auto !important; max-width: 320px !important; }


/* Strong overrides: ensure the mobile menu toggle is always visible and has no hover/active visuals */
.menu-toggle {
  z-index: 2147483647 !important; /* topmost */
  position: relative !important;
  visibility: visible !important;
  pointer-events: auto !important;
  background: transparent !important;
}
.menu-toggle:hover,
.menu-toggle:active,
.menu-toggle:focus {
  background: transparent !important;
  transform: none !important;
}

.menu-toggle {
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  height: 64px;
  width: 48px;
  position: relative;
  z-index: 230; /* ensure toggle sits above other navbar/menu layers */
}

/* Mobile navbar & expanding menu removed — using authoritative login-page navbar styles below */
/* --- Layout & Responsive für alle Seiten --- */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
/* smooth in-page scrolling for anchor links */
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-left: 0;
  padding-right: 0;
}
.main-content {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
@media (max-width: 699px) {
  .main-content, .admin-main {
    max-width: 100%;
    margin: 0 2px;
  }
  .info-block, .pricing-block {
    min-width: 0;
    max-width: 100%;
    padding: 24px 0 20px 0;
    margin-left: 10px;
    margin-right: 10px;
  }
}
/* duplicate navbar block removed in favor of the authoritative login-derived block below */

/* navbar/media and dropdown initial block removed (replaced by redesigned navbar below) */
.banner {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 0;
}

/* keep banner movement in sync with the mobile menu slide
   use transform for GPU-accelerated, smoother transitions to avoid thin gaps */
.banner {
  transition: margin-top 420ms cubic-bezier(.2,.9,.2,1);
}
.footer {
  background: var(--gray-light);
  color: #fff;
  height: var(--footer-height);
  box-sizing: border-box; /* include padding in the fixed height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 15px;
  padding: 24px 0 12px 0; /* restore previous vertical spacing visually */
  margin-top: 48px; /* keep visual gap on pages like index.php */
  position: relative;
}
.footer-logo {
  height: 22px;
  vertical-align: middle;
  margin-left: 8px;
}
.footer-links {
  margin-bottom: 8px;
}
.footer-links a {
  color: #fff;
  margin: 0 12px;
  text-decoration: underline;
  font-size: 15px;
}

/* --- Responsive Queries --- */
@media (min-width: 1200px) {
  body {
    padding-left: 30px;
    padding-right: 30px;
  }
  .main-content, .admin-main {
    max-width: 1100px;
    margin: 0 auto;
  }
  .landing-navbar {
    height: 64px;
  }
}
@media (max-width: 1199px) and (min-width: 700px) {
  .landing-navbar {
    padding: 0 16px;
    height: 64px;
  }
  .main-content, .admin-main {
    max-width: 900px;
    margin: 0 12px;
  }
}
@media (max-width: 699px) {
  .main-content, .admin-main {
    max-width: 100%;
    margin: 0 2px;
  }
  .info-block, .pricing-block {
    min-width: 0;
    max-width: 100%;
    padding: 24px 0 20px 0;
    margin-left: 10px;
    margin-right: 10px;
  }
}
/* Einheitliche Blöcke für Info und Pricing */
.info-block, .pricing-block {
  background: linear-gradient(135deg, #fff 80%, #f7f7fa 100%);
  border-radius: 18px;
  box-shadow: 0 6px 32px 0 rgba(0,0,0,0.10), 0 1.5px 6px 0 rgba(0,0,0,0.04);
  border: 1.5px solid #f0f0f0;
  padding: 38px 32px 34px 32px;
  max-width: 400px;
  min-width: 320px;
  text-align: center;
  transition: box-shadow 0.18s, transform 0.18s;
  position: relative;
}
.info-block:hover, .pricing-block:hover {
  box-shadow: 0 12px 36px 0 rgba(0,0,0,0.16), 0 2px 8px 0 rgba(0,0,0,0.08);
  transform: translateY(-4px) scale(1.025);
  border-color: var(--primary-light);
}
:root {
  --primary: #FE6800;
  --primary-light: #FFB380;
  --gray: #757575;
  --gray-light: #ABABAB;
  --border: #d0d7de;
  --bg: #fff;
  --radius: 6px;
  --navbar-height: 64px;
  --footer-height: 96px;
  --input-bg: #fafbfc;
}

body {
  font-family: 'Roboto', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  background: var(--bg);
  color: var(--gray);
  margin: 0;
  padding: 0;
}

header {
  background: var(--primary);
  color: #fff;
  padding: 18px 0;
  text-align: center;
  margin-bottom: 24px;
}

h1, h2 {
  color: var(--primary);
  font-weight: 700;
}

form {
  background: var(--input-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  max-width: 420px;
  margin: 0 auto 24px auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

input[type="text"], input[type="email"], input[type="password"], textarea, select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 14px;
  border: 1.5px solid var(--gray-light);
  border-radius: var(--radius);
  background: #fff;
  color: var(--gray);
  font-size: 15px;
  transition: border-color 0.2s;
  box-sizing: border-box;
  min-height: 35px;
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, textarea:focus, select:focus {
  outline: 2px solid var(--primary);
  border-color: var(--primary);
}

button {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 10px 22px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

button:hover, button:focus {
  background: var(--primary-light);
}

label {
  font-weight: 500;
  color: var(--gray);
  margin-bottom: 4px;
  display: block;
}

table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 24px;
}

th, td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
}

th {
  background: var(--primary-light);
  color: #fff;
}

tr:nth-child(even) {
  background: #f9f9f9;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Ensure navbar-specific anchors/buttons keep white color even after global a{} rules
   placed later in the stylesheet. This prevents desktop/tablet link text from
   inheriting the site-primary color. */
.landing-navbar a,
.landing-navbar button,
.landing-navbar .lang-dropdown-btn {
  color: #fff;
}

/* Ensure the logo container uses flexbox and keeps the logo vertically centered */
.landing-navbar-logo {
  display: flex;
  align-items: center;
  height: 100%;
}

ul {
  padding-left: 20px;
}

.success {
  color: green;
}

.error {
  color: red;
}


/* Symmetrische und responsive Info- und Pricing-Blöcke */
.info-blocks, .pricing-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  justify-items: center;
  align-items: stretch;
  margin: 64px 0 48px 0;
}

@media (max-width: 1100px) {
  .info-blocks, .pricing-blocks {
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

@media (max-width: 700px) {
  .info-blocks, .pricing-blocks {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .info-block, .pricing-block {
    max-width: 400px;
    min-width: 320px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Ensure a consistent 15px gap to the viewport edges on small screens */
@media (max-width: 699px) {
  .info-block, .pricing-block {
    margin-left: 15px !important;
    margin-right: 15px !important;
    /* subtract horizontal gaps so block never touches screen edge */
    width: calc(100% - 30px) !important;
    box-sizing: border-box;
    min-width: 0; /* allow blocks to shrink on narrow devices */
    max-width: none;
  }
  /* keep the grid container flush but items padded via margin */
  .info-blocks, .pricing-blocks {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Optional: zentriere Buttons in den Blöcken */
.info-block button, .pricing-block button {
  display: block;
  margin: 18px auto 0 auto;
}

/* Listen-Layout für .pricing-block ul */
.pricing-block ul {
  list-style: none;
  padding: 0;
  margin: 18px auto 0 auto;
  font-size: 1.01rem;
  color: #555;
  text-align: left;
  display: table;
}
.pricing-block ul li {
  text-align: left;
  width: 100%;
  margin-bottom: 7px;
  padding-left: 1.2em;
  position: relative;
}
.pricing-block ul li:before {
  content: '✔';
  color: var(--primary);
  position: absolute;
  left: 0;
  font-size: 1em;
  top: 0;
}

/* ------------------------------------------------------------------
   Redesigned navbar (desktop + mobile)
   - Desktop: logo left, actions right
   - Mobile: hamburger toggle, actions collapse into a slide-down bar
   - Language dropdown kept intact and visible above other content
   ------------------------------------------------------------------ */
.landing-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--primary);
  color: #fff;
  height: var(--navbar-height);
  padding: 0 20px;
  box-sizing: border-box;
  position: relative;
  z-index: 9999;
  overflow: visible;
}
.landing-navbar-logo {
  display: flex;
  align-items: center;
  height: var(--navbar-height); /* ensure container matches navbar height for perfect centering */
}
.landing-navbar-logo img {
  height: 34px; /* slightly smaller for visual balance */
  width: auto;
  display: block;
  margin: 0; /* remove any implicit margins */
  align-self: center;
}
.menu-toggle {
  display: none; /* visible on mobile via media query */
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  width: 48px;
  z-index: 2147483620; /* ensure dropdown floats above mobile menu */
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Prevent Edge from showing a blinking text caret inside the empty button/span
   by hiding caret and disabling text selection inside the toggle. Keep focus
   outlines for accessibility. */
.menu-toggle, .menu-toggle * {
  caret-color: transparent !important;
  -webkit-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

/* Hamburger icon: explicit 3-bar layout for reliable rendering */
.hamburger {
  display: inline-block;
  width: 20px;
  height: 16px;
  position: relative;
}
.hamburger .bar {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  margin: 3px auto;
  transition: transform 220ms ease, opacity 160ms ease;
}

/* open -> morph into X */
.menu-toggle.open .hamburger .bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle.open .hamburger .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open .hamburger .bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* no hover effect on the toggle; keep it visually simple */
/* hover/active intentionally left empty to avoid visual change */
.landing-navbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.landing-navbar-actions a,
.landing-navbar-actions button,
.landing-navbar .lang-dropdown-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 0 16px;
  height: var(--navbar-height); /* full navbar height on desktop */
  text-decoration: none;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s, transform 0.12s;
  box-sizing: border-box;
}

/* lift the language button 2px for visual alignment across breakpoints */
.landing-navbar .lang-dropdown-btn {
  transform: translateY(-3px);
}
.landing-navbar-actions a:hover,
.landing-navbar-actions button:hover {
  background: rgba(255,255,255,0.08);
}
.lang-dropdown {
  position: relative;
}
.lang-dropdown-list {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  color: #333;
  min-width: 160px;
  max-width: 280px;
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  z-index: 2147483645 !important;
  overflow: visible !important;
  padding: 6px 0;
}
.lang-dropdown.open .lang-dropdown-list {
  display: block;
}
.lang-dropdown-list button {
  color: #333;
  background: none;
  border: none;
  display: block;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
}
.lang-dropdown-list button:hover { background: var(--primary-light); color: #fff; }

/* Mobile behavior */
@media (max-width: 699px) {
  /* force toggle visible on small screens (override any conflicting rules) */
  .menu-toggle {
  display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 2147483650 !important;
    position: relative !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important; /* no visible rectangle */
    border: none !important;
    padding: 8px !important; /* keep comfortable touch area */
    width: 44px !important;
    height: 44px !important;
    appearance: none !important;
  align-self: center !important;
  }
  .landing-navbar { padding: 0 10px; }
  .landing-navbar-logo img { height: 30px; }

  /* collapsed actions slide down under navbar */
  .landing-navbar-actions {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%; /* start directly at the bottom edge of the navbar */
    transform-origin: top center;
    z-index: 210; /* keep menu under the toggle */
    background: #8C8479; /* slide-down menu color requested */
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    padding: 0 8px; /* tighten vertical padding to center items */
    max-height: 0; /* collapsed */
    height: 64px; /* visual height when opened */
  opacity: 0;
  overflow: hidden; /* clip hover backgrounds so they don't bleed past the bottom */
  transform: translateY(-8px);
  transition: max-height 420ms cubic-bezier(.2,.9,.2,1), opacity 300ms ease, transform 300ms ease;
    pointer-events: none; /* prevent clicks when closed */
    box-shadow: none; /* avoid extra shadow overlapping the navbar */
  }
  .landing-navbar-actions.open { max-height: 64px; opacity: 1; pointer-events: auto; transform: translateY(0); background: #8C8479; }
  /* ensure opened actions allow visible dropdowns */
  .landing-navbar-actions.open { overflow: visible !important; }

  .landing-navbar-actions > * {
    flex: 0 0 auto;
    padding: 0 12px;
  height: 64px; /* match navbar height for visual alignment */
  line-height: 64px;
  box-sizing: border-box;
    white-space: nowrap;
    box-sizing: border-box;
  }

  /* ensure language dropdown button aligns like other actions and fills the full action height */
  .lang-dropdown { display: inline-flex; align-items: center; height: 64px; }
  .lang-dropdown .lang-dropdown-btn {
    height: 64px; /* match other action heights */
    align-items: center;
    display: inline-flex;
    padding: 0 12px; /* match other actions */
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    box-sizing: border-box;
  }

  /* ensure hover matches other action hover so the background covers the full navbar/menu height */
  .landing-navbar .lang-dropdown-btn:hover {
    background: rgba(255,255,255,0.08);
  }

  /* initial hidden state for individual items to allow staggered fade-in from right->left */
  .landing-navbar-actions > * {
    opacity: 0;
    transform: translateX(12px);
  }

  /* when menu opens, animate items in from right to left (last item appears first) */
  @keyframes navItemIn {
    from { transform: translateX(12px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
  }
  .landing-navbar-actions.open > * {
    animation-name: navItemIn;
    /* start after the menu open animation (420ms) so items appear once the bar is visible */
    animation-delay: 420ms;
    animation-duration: 420ms; /* slightly slower for a softer entrance */
    animation-timing-function: cubic-bezier(.2,.9,.2,1);
    animation-fill-mode: forwards;
  }

  /* stagger delays: last child (lang) appears first; add extra offsets on top of base delay */
  .landing-navbar-actions.open > :nth-last-child(1) { animation-delay: 420ms; }
  .landing-navbar-actions.open > :nth-last-child(2) { animation-delay: 520ms; }
  .landing-navbar-actions.open > :nth-last-child(3) { animation-delay: 620ms; }
  .landing-navbar-actions.open > :nth-last-child(4) { animation-delay: 720ms; }

  /* make the hamburger visually the last item on the row */
  .menu-toggle { margin-left: auto !important; }

  /* ensure the hamburger button itself has no visible background so it looks like the classic sandwich */
  .menu-toggle { background: transparent !important; box-shadow: none !important; }

  /* keep a comfortable touch target but remove debug visuals */
  .menu-toggle {
    padding: 6px !important;
    background: transparent !important;
    border: none !important;
  }

  /* ensure hamburger lines are visible and not collapsed */
  .hamburger { display: inline-block; width: 24px; height: 18px; }
  .hamburger .bar { display: block; width: 20px; height: 2px; background: #fff !important; margin: 3px auto; border-radius: 2px; }

  /* on mobile, render the language dropdown list as fixed so it isn't clipped by the actions container */
  .lang-dropdown-list {
    position: fixed !important;
    right: 12px !important;
    top: calc(64px + 8px) !important; /* below the navbar */
    z-index: 2147483655 !important;
    max-width: 320px !important;
  }

  .menu-toggle:focus,
  .landing-navbar-actions a:focus,
  .landing-navbar-actions button:focus,
  .lang-dropdown-btn:focus {
    /* avoid showing a visible rectangle on mouse click; show only for keyboard (focus-visible) */
    outline: none;
    outline-offset: 2px;
  }

  /* show an accessible outline when focused via keyboard or assistive tech */
  .menu-toggle:focus-visible {
    outline: 3px solid rgba(255,255,255,0.14);
    outline-offset: 2px;
  }
  .landing-navbar-actions a:focus-visible,
  .landing-navbar-actions button:focus-visible,
  .lang-dropdown-btn:focus-visible {
    outline: 3px solid rgba(255,255,255,0.14);
    outline-offset: 2px;
  }
}

/* Mobile: give the contact/banner area some breathing room so inputs don't touch the navbar/footer */
@media (max-width: 699px) {
  .email-contact-section {
    padding: 18px 16px; /* space above and below on small screens */
    box-sizing: border-box;
    margin: 12px 0; /* gentle spacing from other blocks */
    display: flex;
    align-items: flex-start; /* start content below the top padding */
    justify-content: center;
    background-position: center top; /* keep image visible where applicable */
    min-height: auto;
    height: auto;
  }
  .email-contact-form {
    width: 100% !important;
    max-width: 640px !important;
    margin: 0 auto !important;
  }
}

/* Ensure email contact textarea can only be resized vertically, not horizontally */
.email-contact-form textarea {
  resize: vertical !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

  /* Desktop & Tablet: nicer textarea appearance for email contact form */
  @media (min-width: 700px) {
    .email-contact-form textarea {
      min-height: 180px; /* taller on larger screens */
      padding: 14px 16px !important;
      border-radius: 10px !important;
      border: 1px solid rgba(34,34,34,0.08) !important;
      background: #fff !important;
      box-shadow: 0 6px 20px rgba(0,0,0,0.06) !important;
      font-size: 15px !important;
      line-height: 1.45 !important;
      transition: box-shadow 160ms ease, border-color 160ms ease, transform 120ms ease !important;
    }
    .email-contact-form textarea:focus {
      outline: none !important;
      box-shadow: 0 10px 30px rgba(0,0,0,0.08) !important;
      border-color: var(--primary) !important;
      transform: translateY(-1px) !important;
    }
  }

  /* Decorative background for contact area on larger screens */
  @media (min-width: 700px) {
    .email-contact-section {
        background-image: linear-gradient(rgba(255,255,255,0.12), rgba(255,255,255,0.12)), url('../img/email_banner.jpg');
        background-size: cover; /* crop per viewport */
        /* position the image to the right so the computer stays visible */
        background-position: right center;
        /* span exactly between navbar bottom and footer top */
        height: calc(100vh - var(--navbar-height) - var(--footer-height));
        margin: 0; /* no extra spacing so section fills the available area */
        padding: 0 60px; /* horizontal breathing room while keeping full-height */
        border-radius: 0;
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: flex-end; /* push form to the right */
        overflow: hidden; /* ensure image fills without scroll */
      }
      .email-contact-form {
        background: rgba(255,255,255,0.96) !important;
        padding: 18px !important;
        border-radius: 10px !important;
        box-shadow: 0 8px 30px rgba(0,0,0,0.08) !important;
        backdrop-filter: blur(6px) !important;
        -webkit-backdrop-filter: blur(6px) !important;
        border: 1px solid rgba(0,0,0,0.06) !important;
        max-width: 460px !important;
        width: 420px !important;
        margin: 0 48px 0 0 !important; /* right offset from screen edge */
      }
      /* reduce textarea height so the whole section fits on one viewport */
      .email-contact-form textarea { min-height: 140px !important; }
    /* place the form on the right with comfortable max-width and spacing from edges */
    .email-contact-section {
      padding-left: 60px; /* extra left inset so banner has breathing room */
      padding-right: 60px;
    }
    .email-contact-form {
      max-width: 560px !important;
      margin-left: auto !important; /* push to the right */
      width: calc(50% + 120px) !important; /* wider but stays right-aligned */
    }
  }


