/* Restored Dark Theme Styles */
:root {
  --primary-color: #f39200; /* S.K.I.P. Orange */
  --secondary-color: #7a7979; /* Dunkelgrau Header */
  --dark-bg: #414040; /* Fast Schwarz für Hintergrund */
  --darker-bg: #111; /* Noch dunkler für Footer/Grid */
  --text-grey: #746f6f;
  --border-color: #444;
  --bg-color: #e6e6e6;
  --text-color: #333;
  --light-text: #fff;
  --footer-bg: #333;
}

/* Rem-based overrides: convert common px values to rem for consistent scaling */
:root {
  /* assume browser default 16px -> 1rem = 16px */
}

/* Layout containers */
.container {
  max-width: 87.5rem; /* 1400px */
  padding: 0 1.25rem; /* 20px */
}

.top-bar {
  padding: 0.625rem 0; /* 10px 0 */
}

.top-bar .container {
  gap: 0.9375rem; /* 15px */
}

.contact-icons {
  gap: 0.625rem; /* 10px */
}
.btn-call,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: white;
  padding: 10px 20px 10px 72px; /* left padding for slider, right padding for text */
  border-radius: 999px;
  font-weight: 700;
  margin-top: 15px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden; /* keep button contained */
  transition: background 500ms cubic-bezier(0.2, 0.9, 0.2, 1),
    color 360ms cubic-bezier(0.2, 0.9, 0.2, 1), transform 160ms ease;
  min-height: 44px;
}

/* PNG Button Slider - starts on the left, already rotated 180deg */
/* Slider stays behind text so text remains readable */
.btn-call::before,
.btn-primary::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 64px;
  height: 40px;
  border-radius: 50%;
  background-image: url("../img/rundbutton_Orange.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left;
  transform: translateY(-50%) translateX(-15px) rotate(180deg);
  transition: left 500ms cubic-bezier(0.2, 0.9, 0.2, 1), 
              transform 500ms cubic-bezier(0.2, 0.9, 0.2, 1), 
              box-shadow 220ms ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  z-index: 1; /* behind text */
}

/* Text content - always visible and readable above slider */
.btn-call span,
.btn-primary span {
  position: relative;
  z-index: 10;
  transition: color 500ms cubic-bezier(0.2, 0.9, 0.2, 1);
  display: block;
  width: 100%;
  text-align: center;
  padding: 0 80px 0 20px; /* extra right padding to avoid slider overlap */
  pointer-events: none;
  white-space: nowrap; /* prevent text wrapping */
}

/* Arrow removed - no ::after needed */

/* Move slider and text from left to right on hover - slide across entire button width */
/* Smooth slide animation: slider moves from left edge all the way to right edge of button */
.btn-call:hover::before,
.btn-primary:hover::before {
  left: calc(100% - 64px - 12px);
  transform: translateY(-50%) translateX(0) rotate(180deg);
}

/* Change button colors on hover: from orange-white to white-orange */
.btn-call:hover,
.btn-primary:hover {
  background: white;
  color: var(--primary-color);
}

.btn-call:hover span,
.btn-primary:hover span {
  color: var(--primary-color);
}

.btn-call i,
.btn-primary i {
  display: none; /* hide inline icon, arrow shown via pseudo element */
}

nav ul li a i {
  margin-left: 0.3125rem;
}

.dropdown {
  min-width: 12.5rem; /* 200px */
  border-top-width: 0.125rem;
}
.dropdown li a {
  padding: 0.625rem 0.9375rem;
  border-bottom-width: 0.0625rem;
}

.info-section {
  padding: 2.5rem 0;
  border-bottom-width: 0.0625rem;
}
.info-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.info-col h3,
.info-col h4 {
  margin-bottom: 0.9375rem;
  letter-spacing: 0.0625rem;
}
.info-col p {
  margin-bottom: 0.625rem;
}
.contact-cta .btn-call,
.contact-cta .btn-primary {
  padding: 10px 18px;
  font-size: 0.95rem;
}

.landing-image {
  max-width: 28.125rem;
  filter: drop-shadow(0 0 0.9375rem rgba(0, 0, 0, 0.5));
}
.info-divider {
  border-top-width: 0.0625rem;
  margin: 1.25rem 0;
  width: 3.125rem;
}

.link-grid-section {
  padding: 3.75rem 0;
}
.link-grid {
  gap: 2.5rem;
  row-gap: 3.75rem;
}
.link-col h3 {
  margin-bottom: 0.9375rem;
  padding-bottom: 0.3125rem;
}
.link-col ul li {
  margin-bottom: 0.625rem;
}
.link-col ul li a::before {
  margin-right: 0.625rem;
}
.link-col ul li a:hover {
  padding-left: 0.3125rem;
}

footer {
  padding: 1.25rem 0;
}

.ticket-form-container {
  /* DIN 5008 like letter styling */
  background: #ffffff;
  color: var(--text-color);
  padding: 2.5rem 3rem;
  border-radius: 0.25rem;
  max-width: 52rem;
  margin: 0 auto;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  box-sizing: border-box;
}

.ticket-form-container h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
}
.ticket-form-container .mail-guidance p {
  margin: 0 0 0.5rem 0;
  font-size: 0.98rem;
}
.ticket-form input,
.ticket-form textarea {
  padding: 0.625rem;
  margin-bottom: 0.9375rem;
  border-width: 0.0625rem;
  border-radius: 0.3125rem;
}
.ticket-form label {
  margin-bottom: 0.3125rem;
}
.form-row {
  gap: 1.25rem;
}
/* Button styles are defined globally - removed duplicate override */

/* (removed .btn-support) */

.info-box {
  padding: 1.25rem;
}
.info-box-content {
  padding: 1.75rem;
  border-radius: 0.625rem;
  max-width: 32.5rem;
  box-shadow: 0 0.625rem 2.5rem rgba(0, 0, 0, 0.3);
}
.info-box-content h3 {
  margin-bottom: 0.625rem;
}
.info-box-content p {
  margin-bottom: 1.125rem;
}

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

body {
  font-family: "Segoe UI", sans-serif;
  line-height: 1.5;
  color: var(--text-color);
  background-color: var(--bg-color);
}

.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

ul {
  list-style: none;
}

/* Header & Top Bar */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent;
  width: 100%;
}

.top-bar {
  background: rgba(194, 192, 192, 0.3);
  padding: 10px 0;
  position: relative;
  z-index: 1001;
}

.top-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 15px;
  flex-wrap: nowrap;
}

.contact-icons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.contact-icons a {
  color: var(--secondary-color);
  font-size: 1.2rem;
  background: rgba(238, 238, 238, 0.4);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-icons a:hover {
  background: var(--primary-color);
  color: white;
}

.search-bar {
  display: flex;
  background: var(--primary-color);
  border-radius: 20px;
  padding: 5px 15px;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.search-bar input {
  border: none;
  background: transparent;
  padding: 5px 10px;
  color: white;
  outline: none;
  font-weight: bold;
  min-width: 150px;
}

.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.8);
}

.search-bar button {
  background: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: var(--primary-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-nav-bar {
  background-color: rgba(84, 84, 84, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  border-bottom: 3px solid var(--primary-color);
  position: relative;
  z-index: 1002;
  width: 100%;
}

.main-nav-bar .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 50px;
}

.logo-container {
  position: absolute;
  top: -50px;
  left: 20px;
  background: white;
  padding: 15px 25px;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 1001;
  max-width: 250px;
}
.logo-container img {
  max-width: 100%;
  height: auto;
}

nav ul {
  display: flex;
}

nav ul li a {
  display: block;
  padding: 15px 20px;
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

nav ul li a:hover,
nav ul li a.active {
  color: var(--primary-color);
}

nav ul li a i {
  margin-left: 5px;
  font-size: 0.8rem;
  color: var(--primary-color);
}

/* ensure dropdown positions relative to each nav item so it opens under that item */
nav ul li {
  position: relative;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--darker-bg);
  min-width: 200px;
  z-index: 1002;
  border-top: 2px solid var(--primary-color);
}

nav ul li:hover .dropdown {
  display: block;
}

.dropdown li a {
  padding: 10px 15px;
  border-bottom: 1px solid #333;
  text-transform: none;
  color: #ccc;
}

.dropdown li a:hover {
  color: var(--primary-color);
  background: #222;
}

.menu-toggle {
  display: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Info Section (Dark Theme) */
.info-section {
  background-color: var(--dark-bg);
  color: white;
  padding: 40px 0;
  border-bottom: 1px solid #333;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: stretch;
}

/* Page-specific: when info-grid has class three-to-two, use two columns
   and stack the info-box-content elements inside .stacked-column */
.info-grid.three-to-two {
  grid-template-columns: 1fr 1fr;
}
.stacked-column {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.stacked-column .info-box-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px;
  box-sizing: border-box;
}
.stacked-column .info-box-content h3 {
  margin-bottom: 12px;
}

.info-col h3,
.info-col h4 {
  color: white;
  text-transform: uppercase;
  margin-bottom: 15px;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.info-col p {
  color: var(--text-grey);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.info-col strong {
  color: var(--primary-color);
}

/* .btn-call legacy rules removed; unified styles defined earlier */

.mascot-img {
  text-align: center;
  position: relative;
  z-index: 10;
}

.landing-image {
  width: 100%;
  height: auto;
  max-width: 450px;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 0 15px rgba(0, 0, 0, 0.5));
}

.info-divider {
  border-top: 1px solid var(--primary-color);
  margin: 20px 0;
  width: 50px;
}

/* Link Grid Section */
.link-grid-section {
  background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
    url("../img/server-bg.jpg");
  background-color: var(--darker-bg);
  background-size: cover;
  background-attachment: fixed;
  color: white;
  padding: 60px 0;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  row-gap: 60px;
}

.link-col h3 {
  color: white;
  text-transform: uppercase;
  font-size: 1.2rem;
  margin-bottom: 15px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 5px;
}

.link-col ul li {
  margin-bottom: 10px;
}

.link-col ul li a {
  color: white;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.link-col ul li a::before {
  content: "■";
  color: var(--primary-color);
  font-size: 0.6rem;
  margin-right: 10px;
  vertical-align: middle;
}

.link-col ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

/* Footer */
footer {
  background: black;
  color: #666;
  padding: 20px 0;
  text-align: center;
  font-size: 0.8rem;
}

/* Ticket Form & Pages */
.ticket-form-container {
  background: #fff;
  padding: 40px;
  border-radius: 10px;
  max-width: 800px;
  margin: 0 auto;
  color: #333;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  box-sizing: border-box;
}
.ticket-form input,
.ticket-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.ticket-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
.form-row {
  display: flex;
  gap: 20px;
}
.form-row .form-group {
  flex: 1;
}
.form-row .form-group label {
  /* Gleiche Mindesthöhe für Labels, damit die Eingabefelder in Reihen
     horizontal ausgerichtet sind (z.B. 'Meldende Person' vs 'Ansprechpartner'). */
  min-height: 2.4rem;
}
/* Additional btn-primary styles - keeping consistency with btn-call */

/* InfoBox / Modal */
.info-box {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  padding: 20px;
}
.info-box.hidden {
  display: none;
}
.info-box-content {
  background: #fff;
  color: #222;
  padding: 28px;
  border-radius: 10px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
}
.info-box-content h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
  text-transform: uppercase;
}
.info-box-content p {
  margin-bottom: 18px;
  color: #444;
}

/* Responsive */
@media (max-width: 1024px) {
  .info-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .link-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .main-nav-bar .container {
    justify-content: space-between;
  }
  .logo-container {
    position: static;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }
  .top-bar {
    display: none;
  }
  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--darker-bg);
    z-index: 2000;
  }
  nav.active {
    display: block;
  }
  nav ul {
    flex-direction: column;
  }
  .menu-toggle {
    display: block;
  }
  .form-row {
    flex-direction: column;
  }
}
/* end of responsive */
