:root {
  --dark-bg: #141414;
  --b: #1a2e80;
  --lb: #4b5cfa;
  --white: #fff;
  --font-base: 'Raleway', sans-serif;
}

body {
  font-family: var(--font-base);
  color: var(--white);
  background: var(--dark-bg);
  line-height: 1.5;
  font-size: 100%;
  margin: 0;
  padding: 0;
}

@media (max-width: 850px) {
  body {
    font-size: 90%;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 80%;
  }
}

.all {
  display: flex;
  flex-direction: column;
  min-height: 75vh;
}

a {
  color: var(--lb);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
  color: var(--b);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 701;
  margin-bottom: 1rem;
}

.container {
  width: 90%;
  max-width: 1600px;
  margin: 0 auto;
}

/* Header */

.site-header {
  background: #000;
  padding: 0.8rem 0;
  border-bottom: 2px solid var(--b);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
  display: block;
  margin: 0;
  padding: 0;
}

/* Navigation */

.main-nav {
  margin: 0;
  padding: 0;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}

.main-nav ul li a {
  color: var(--lb);
  font-weight: bold;
  font-size: 1.3rem;
  line-height: 1;
  display: inline-block;
  padding: 0.3rem 0;
  transition: color 0.3s ease;
}

.main-nav li.active a {
  color: var(--b);
}

.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--lb);
  font-size: 1.5rem;
  cursor: pointer;
  display: inline-block;
}

@media (max-width: 767px) {
  .main-nav ul li {
    display: block;
    margin: 0.5rem 0;
  }
}

@media (min-width: 768px) {
  .main-nav ul {
    display: inline-block;
    white-space: nowrap;
  }

  .main-nav ul li {
    display: inline-block;
    margin: 0 0.5rem;
  }

  .mobile-menu-toggle {
    display: none;
  }
}

/* Hero (Startseite) */

.hero-section {
  background: linear-gradient(135deg, #0f1a40 0%, #000 100%);
  padding: 4rem 0;
  text-align: center;
  color: var(--white);
}

.hero-content {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-section h1 {
  font-size: 2.1rem;
  margin-bottom: 1rem;
  font-weight: 701;
  letter-spacing: 1px;
  color: var(--lb);
}

.hero-section h2 {
  font-size: 1.3rem;
  max-width: 850px;
  margin: 0 auto;
  line-height: 1.5;
  font-weight: 400;
  color: #ccc;
  margin-top: 1rem;
}

/* Cards / Grid */

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
  margin-top: 4rem;
}

.card {
  background: #111;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 440px;
  width: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

.card h2 {
  font-size: 1.4rem;
  font-weight: 701;
  color: var(--lb);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.card ul li {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  font-weight: 400;
  color: #ccc;
}

.card a {
  display: inline-block;
  background: var(--lb);
  color: #000;
  text-decoration: none;
  padding: 0.6rem 1rem;
  border-radius: 5px;
  font-weight: 701;
  font-size: 1rem;
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease;
  margin-top: auto;
}

.card a:hover {
  background: var(--b);
  color: #fff;
}

@media (min-width: 768px) {
  .card {
    width: calc(28% - 2rem);
  }
}

/* Traffic Akkordeon */

.traffic-overview-box h3 {
  font-size: 1.6rem;
  color: var(--lb);
  margin-bottom: 1rem;
}

.traffic-box {
  background: #111;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.5);
}

.accordion {
  background: none;
  color: var(--lb);
  cursor: pointer;
  padding: 0.7rem;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  font-size: 1rem;
  font-weight: 700;
  transition: background 0.3s ease;
}

.accordion:hover {
  background: #222;
}

.accordion.active {
  background: #333;
}

.panel {
  display: none;
  background-color: #000;
  padding: 1rem;
  margin-top: 0.5rem;
  border-radius: 8px;
}

/* Tabellen (global) */

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  background: var(--b);
  color: #fff;
  padding: 0.5rem;
  font-size: 0.9rem;
  text-align: left;
}

tbody td {
  padding: 0.4rem;
  border-bottom: 1px solid #333;
  font-size: 0.9rem;
  color: #ddd;
}

/* Impressum */

.impressum-hero {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, #0f1a40 0%, #000 100%);
}

.impressum-hero h1 {
  font-size: 2.5rem;
  color: var(--lb);
  margin-bottom: 1rem;
}

.impressum-hero hr {
  width: 50%;
  margin: 1rem auto;
  border: none;
  height: 2px;
  background: var(--b);
}

.impressum-hero p {
  font-size: 1.2rem;
  color: #ccc;
  margin-top: 1rem;
}

.impressum-container h1,
.impressum-container h2,
.impressum-container h3,
.impressum-container h4,
.impressum-container h5,
.impressum-container h6 {
  color: var(--lb);
}

/* Datenschutz */

.datenschutz-hero {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, #0f1a40 0%, #000 100%);
}

.datenschutz-hero h1 {
  font-size: 2.5rem;
  color: var(--lb);
  margin-bottom: 1rem;
}

.datenschutz-hero hr {
  width: 50%;
  margin: 1rem auto;
  border: none;
  height: 2px;
  background: var(--b);
}

.datenschutz-hero p {
  font-size: 1.2rem;
  color: #ccc;
  margin-top: 1rem;
}

.datenschutz-container h1,
.datenschutz-container h2,
.datenschutz-container h3,
.datenschutz-container h4,
.datenschutz-container h5,
.datenschutz-container h6 {
  color: var(--lb);
}

/* AGB */

.agb-hero {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, #0f1a40 0%, #000 100%);
}

.agb-hero h1 {
  font-size: 2.5rem;
  color: var(--lb);
  margin-bottom: 1rem;
}

.agb-hero hr {
  width: 50%;
  margin: 1rem auto;
  border: none;
  height: 2px;
  background: var(--b);
}

.agb-hero p {
  font-size: 1.2rem;
  color: #ccc;
  margin-top: 1rem;
}

.agb-container h1,
.agb-container h2,
.agb-container h3,
.agb-container h4,
.agb-container h5,
.agb-container h6 {
  color: var(--lb);
}

/* Cookie-Tool (Seite) */

.cookie-tool-hero {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, #0f1a40 0%, #000 100%);
}

.cookie-tool-hero h1 {
  font-size: 2.5rem;
  color: var(--lb);
  margin-bottom: 1rem;
}

.cookie-tool-hero hr {
  width: 50%;
  margin: 1rem auto;
  border: none;
  height: 2px;
  background: var(--b);
}

.cookie-tool-hero p {
  font-size: 1.2rem;
  color: #ccc;
  margin-top: 1rem;
}

.cookie-tool-container {
  padding: 2rem 0;
  text-align: left;
}

.cookie-tool-container h2,
.cookie-tool-container h3 {
  color: var(--lb);
  margin-bottom: 1rem;
}

.cookie-tool-container p {
  color: #ccc;
  margin-bottom: 2rem;
}

.cookie-section {
  margin-bottom: 2rem;
}

.cookie-option {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.cookie-option input[type="checkbox"] {
  width: auto;
  height: auto;
  margin-top: 0.3rem;
  cursor: pointer;
}

.cookie-option label {
  font-size: 1rem;
  color: var(--white);
  line-height: 1.5;
}

.cookie-option a {
  color: var(--lb);
  text-decoration: underline;
  font-size: 0.9rem;
}

.cookie-option a:hover {
  color: var(--b);
}

.cookie-submit {
  margin-top: 2rem;
}

.cookie-submit .glow {
  background: var(--lb);
  color: #000;
  font-weight: 701;
  font-size: 1rem;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.cookie-submit .glow:hover {
  background: var(--b);
  color: #fff;
  transform: translateY(-2px);
}

.cookie-submit .glow:active {
  transform: translateY(0);
}

/* Cookie-Tool (Leiste) */

.cookie-tool {
  background: #000;
  color: #fff;
  padding: 2rem;
  font-size: 1rem;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.7);
}

.cookie-tool .container {
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-tool h2,
.cookie-tool h3 {
  color: var(--lb);
  margin-bottom: 1rem;
}

.cookie-tool p {
  color: #ccc;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.cookie-tool a {
  color: var(--lb);
  text-decoration: underline;
  font-size: 0.95rem;
}

.cookie-tool a:hover {
  color: var(--b);
}

.cookie-tool .col-6 {
  padding: 0;
}

.cookie-tool .col-2,
.cookie-tool .col-4,
.cookie-tool .col-6 {
  box-sizing: border-box;
}

.cookie-tool .col-4 {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.cookie-tool .col-4 .col-2 {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
}

.cookie-tool button {
  background: var(--lb);
  color: #000;
  font-weight: 701;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
  font-size: 0.9rem;
}

.cookie-tool button:hover {
  background: var(--b);
  color: #fff;
  transform: translateY(-2px);
}

.cookie-tool button:active {
  transform: translateY(0);
}

@media (max-width: 600px) {
  .cookie-tool .col-4 {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cookie-tool button {
    width: 100%;
    text-align: center;
  }
}

/* Buttons / Form Basics */

.btn-submit {
  background: var(--lb);
  color: #000;
  font-weight: 701;
  font-size: 1rem;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
  text-align: center;
  width: 100%;
}

.btn-submit:hover {
  background: var(--b);
  color: #fff;
  transform: translateY(-2px);
}

.btn-submit:active {
  transform: translateY(0);
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 1rem;
  }

  .form-group {
    flex: 1 1 100%;
    min-width: auto;
  }

  .contact-box {
    padding: 1.5rem;
  }
}

/* Speedtest */

.speedtest-hero {
  text-align: center;
  padding: 2rem 0;
  background: linear-gradient(135deg, #0f1a40 0%, #000 100%);
}

.speedtest-hero h1 {
  font-size: 2.5rem;
  color: var(--lb);
  margin-bottom: 1rem;
}

.speedtest-hero hr {
  width: 50%;
  margin: 1rem auto;
  border: none;
  height: 2px;
  background: var(--b);
}

.speedtest-hero p {
  font-size: 1.2rem;
  color: #ccc;
  margin-top: 1rem;
}

.speedtest-wrapper {
  text-align: center;
  padding: 2rem 0;
}

.speedtest-wrapper #startStopBtn {
  margin: 2rem auto;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--lb);
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #000;
  font-weight: 701;
}

.speedtest-wrapper #startStopBtn:hover {
  background: var(--b);
  transform: translateY(-2px);
}

.speedtest-wrapper #startStopBtn.running {
  background: var(--b);
  animation: pulse 1.5s infinite;
  color: #fff;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

.speedtest-wrapper #test {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  margin-bottom: 4rem;
}

.speedtest-wrapper .testGroup {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
}

.speedtest-wrapper .testArea {
  background: #000;
  border: 2px solid #333;
  border-radius: 8px;
  padding: 1.5rem;
  width: 250px;
  text-align: center;
  box-sizing: border-box;
}

.speedtest-wrapper .testName {
  font-size: 1.3rem;
  font-weight: 701;
  margin-bottom: 1rem;
  color: var(--lb);
}

.speedtest-wrapper .meter {
  width: 100%;
  height: 150px;
  display: block;
  margin: 0 auto;
}

.speedtest-wrapper .meterText {
  font-size: 2rem;
  font-weight: 701;
  margin-top: 1rem;
  color: #fff;
}

.speedtest-wrapper .unit {
  font-size: 1.2rem;
  color: #ccc;
  margin-top: 0.5rem;
}

.speedtest-wrapper #ipArea {
  font-size: 1.1rem;
  color: #ccc;
}

/* Kunden – Nachrichtenseite */

.kunden-nachricht-page {
  display: flex;
  flex-direction: column;
  color: #fff;
}

.kunden-nachricht-page .nachricht-container {
  flex: 1;
  padding: 2rem 0;
}

.kunden-nachricht-page .intro-container h1 {
  font-size: 2rem;
  color: var(--lb);
  margin-bottom: 1rem;
  text-align: center;
}

.kunden-nachricht-page .intro-container p {
  text-align: center;
}

.kunden-nachricht-page .success-message,
.kunden-nachricht-page .error-message {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.kunden-nachricht-page .success-message {
  color: #00b45d;
}

.kunden-nachricht-page .error-message {
  color: red;
}

.kunden-nachricht-page #kontakt-formular {
  max-width: 850px;
  margin: 2rem auto 0 auto;
  background: #000;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 2rem;
  box-sizing: border-box;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.kunden-nachricht-page .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.kunden-nachricht-page .form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.kunden-nachricht-page .form-group.full-width {
  flex: 1 1 100%;
}

.kunden-nachricht-page .form-group label {
  font-size: 1rem;
  font-weight: 701;
  color: var(--lb);
  margin-bottom: 0.5rem;
}

.kunden-nachricht-page #kontakt-formular textarea {
  height: 150px;
  resize: vertical;
}

.kunden-nachricht-page .btn-row {
  text-align: center;
}

@media (max-width: 600px) {
  .kunden-nachricht-page .intro-container h1 {
    font-size: 1.6rem;
  }

  .kunden-nachricht-page #kontakt-formular {
    padding: 1.5rem;
  }

  .kunden-nachricht-page .form-row {
    flex-direction: column;
  }

  .kunden-nachricht-page .form-group {
    flex: 1 1 100%;
  }
}

/* Intern – Indexseite */

.intern-page {
  color: #fff;
  text-align: center;
}

.intern-page .intern-index-container {
  padding: 2rem 0;
}

.intern-page h1 {
  font-size: 2rem;
  color: var(--lb);
  margin-bottom: 1rem;
}

.intern-page .description {
  color: #ccc;
  font-size: 1rem;
  max-width: 850px;
  margin: 0 auto 3rem auto; /* ersetzt margin-bottom + sorgt für Zentrierung */
  line-height: 1.5;
}

.intern-page .intern-card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.intern-page .intern-card {
  background: #000;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 2rem;
  box-sizing: border-box;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
  text-align: center;
  max-width: 250px;
  flex: 1 1 200px;
}

.intern-page .intern-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--lb);
  margin-bottom: 1rem;
}

.intern-page .intern-card p {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 2rem;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .intern-page h1 {
    font-size: 1.6rem;
  }

  .intern-page .intern-card {
    max-width: 100%;
  }

  .intern-page .intern-card h2 {
    font-size: 1.2rem;
  }

  .intern-page .intern-card p {
    font-size: 0.9rem;
  }
}

/* Generische Titel & Intro */

.page-title {
  font-size: 2rem;
  color: var(--lb);
  margin-bottom: 1rem;
}

.intro-text {
  color: #ccc;
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* Formulare global */

label {
  font-size: 1rem;
  font-weight: 701;
  color: var(--lb);
  margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 0.6rem;
  border: 2px solid #333;
  background: #111;
  color: #fff;
  border-radius: 4px;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  transition: border 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--lb);
  box-shadow: 0 0 5px var(--lb);
  background: #000;
}

@media (max-width: 600px) {
  #kontakt-formular {
    padding: 1.5rem;
  }

  #kontakt-formular input[type="text"],
  #kontakt-formular input[type="email"],
  #kontakt-formular select,
  #kontakt-formular textarea {
    font-size: 0.9rem;
  }
}

/* Karten / Tabellen */

.new-form-card {
  max-width: 850px;
  margin: 0 auto;
  background: #000;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 2rem;
  box-sizing: border-box;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.table-container {
  max-width: 95%;
  margin: 0 auto;
  overflow-x: auto;
}

.paket-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  background: #000;
  border: 1px solid #333;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.paket-table thead {
  background: var(--b);
}

.paket-table thead th {
  color: #fff;
  font-weight: 701;
  font-size: 1rem;
  padding: 1rem;
  text-align: left;
}

.paket-table tbody tr {
  border-bottom: 1px solid #333;
}

.paket-table tbody tr:nth-child(even) {
  background: #111;
}

.paket-table td {
  padding: 0.8rem;
  font-size: 0.95rem;
  color: #ccc;
}

.paket-table td:first-child {
  font-weight: 701;
  color: var(--lb);
}

@media (max-width: 600px) {
  .paket-table td,
  .paket-table th {
    font-size: 0.85rem;
    padding: 0.5rem;
  }

  .paket-table thead th {
    font-size: 0.9rem;
  }
}

/* Kunden – Detailboxen */

.kunde-details-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.kunde-details-left,
.kunde-details-right {
  background: #000;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 1.5rem;
  box-sizing: border-box;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  flex: 1 1 300px;
  max-width: 400px;
  text-align: left;
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Kunden – Übersichtskarten */

.kunden-page {
  color: #fff;
  text-align: center;
}

.kunden-page .kunden-index-container {
  padding: 2rem 0;
}

.kunden-page h1 {
  font-size: 2rem;
  color: var(--lb);
  margin-bottom: 1rem;
}

.kunden-page .description {
  color: #ccc;
  font-size: 1rem;
  max-width: 850px;
  margin: 0 auto 3rem auto; /* ersetzt margin-bottom + sorgt für Zentrierung */
  line-height: 1.5;
}

.kunden-page .kunden-card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.kunden-page .kunden-card {
  background: #000;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 2rem;
  box-sizing: border-box;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
  text-align: center;
  max-width: 250px;
  flex: 1 1 200px;
}

.kunden-page .kunden-card h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--lb);
  margin-bottom: 1rem;
}

.kunden-page .kunden-card p {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 2rem;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .kunden-page h1 {
    font-size: 1.6rem;
  }

  .kunden-page .kunden-card {
    max-width: 100%;
  }

  .kunden-page .kunden-card h2 {
    font-size: 1.2rem;
  }

  .kunden-page .kunden-card p {
    font-size: 0.9rem;
  }
}

/* Generisches Hero */

.hero {
  text-align: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, #0f1a40 0%, #000 100%);
}

.hero h1 {
  font-size: 2.5rem;
  color: var(--lb);
  margin-bottom: 1rem;
}

.hero hr {
  width: 50%;
  margin: 1rem auto;
  border: none;
  height: 2px;
  background: var(--b);
}

.hero p {
  font-size: 1.2rem;
  color: #ccc;
  margin-top: 1rem;
}

/* Kunden-Login */

.kunden-login-page .login-form-container {
  text-align: center;
  padding: 2rem 0;
}

.kunden-login-page .login-form-container h1 {
  font-size: 2rem;
  color: var(--lb);
  margin-bottom: 2rem;
}

.kunden-login-page .login-form-container p {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.kunden-login-page #kontakt-bereich {
  margin-top: 3rem;
}

.kunden-login-page #kontakt-formular-l {
  max-width: 400px;
  margin: 0 auto;
  background: #000;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 2rem;
  box-sizing: border-box;
}

.kunden-login-page #kontakt-formular-l .intro-container h1 {
  font-size: 1.8rem;
  color: var(--lb);
  margin-bottom: 2rem;
  text-align: center;
}

.kunden-login-page .row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.kunden-login-page .col-3 {
  flex: 1 1 100%;
}

.kunden-login-page label {
  font-size: 1rem;
  font-weight: 701;
  color: var(--lb);
  display: block;
  margin-bottom: 0.5rem;
}

#kontakt-formular-l {
  max-width: 400px;
  margin: 0 auto;
  background: #000;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 2rem;
  box-sizing: border-box;
}

#kontakt-formular-l .intro-container h1 {
  font-size: 1.8rem;
  color: var(--lb);
  margin-bottom: 2rem;
  text-align: center;
}

/* Kunden-CTA / Buttons */

.kunden-hero {
  background: linear-gradient(135deg, #0f1a40 0%, #000 100%);
  padding: 2rem 0;
  text-align: center;
}

.kunden-hero .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.kunden-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.kunden-col {
  flex: 0 0 auto;
  text-align: center;
}

#absendenButton-non {
  background: var(--lb);
  color: #000;
  font-weight: 701;
  font-size: 1rem;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

#absendenButton-non:hover {
  background: var(--b);
  color: #fff;
  transform: translateY(-2px);
}

#absendenButton-non:active {
  transform: translateY(0);
}

@media (max-width: 600px) {
  .kunden-row {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .kunden-col {
    width: 100%;
    text-align: center;
  }

  #absendenButton-non {
    width: 100%;
  }
}

/* Kunden-Karten (zweiter Block) */

.kunden-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.kunden-card {
  background: #000;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 2rem;
  width: 100%;
  max-width: 250px;
  text-align: center;
  box-sizing: border-box;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kunden-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

.kunden-card h2 {
  font-size: 1.4rem;
  font-weight: 701;
  color: var(--lb);
  margin-bottom: 1rem;
}

.kunden-card p {
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

@media (max-width: 600px) {
  .kunden-row {
    flex-direction: column;
    align-items: center;
  }

  .kunden-card {
    max-width: 100%;
    width: 90%;
  }
}

/* Back-Link */

.back-link {
  display: inline-block;
  color: var(--lb);
  text-decoration: none;
  background: #111;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  margin-bottom: 2rem;
  transition: background 0.3s ease, color 0.3s ease;
  font-size: 0.9rem;
}

.back-link:hover {
  background: var(--b);
  color: #fff;
  transform: translateY(-2px);
}

/* Absenden-Button */

#absendenButton.glow {
  background: var(--lb);
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.7rem 2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

#absendenButton.glow:hover {
  background: var(--b);
  color: #fff;
  transform: translateY(-2px);
}

#absendenButton.glow:active {
  transform: translateY(0);
}

@media (max-width: 600px) {
  #absendenButton.glow {
    width: 100%;
  }
}

.absendenButton.glow {
  background: var(--lb);
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.7rem 2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.absendenButton.glow:hover {
  background: var(--b);
  color: #fff;
  transform: translateY(-2px);
}

.absendenButton.glow:active {
  transform: translateY(0);
}

@media (max-width: 600px) {
  .absendenButton.glow {
    width: 100%;
  }
}
/* Toggle (Monat/Jahr) */

.toggle-container {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  user-select: none;
  margin-bottom: 1.5rem;
}

.toggle-label {
  font-size: 1rem;
  color: #ccc;
  font-weight: 700;
  cursor: pointer;
}

.toggle-switch {
  position: relative;
  width: 70px;
  height: 30px;
  background: #000;
  border: 2px solid #333;
  border-radius: 50px;
  display: inline-block;
  box-sizing: border-box;
  vertical-align: middle;
  cursor: pointer;
}

.toggle-switch input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--lb, #4b5cfa);
  transition: transform 0.3s ease;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.toggle-half {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  cursor: pointer;
}

.left-half {
  left: 0;
}

.right-half {
  right: 0;
}

#radio-monthly:checked ~ .toggle-slider {
  transform: translateX(0);
}

#radio-yearly:checked ~ .toggle-slider {
  transform: translateX(36px);
}

.toggle-switch:hover .toggle-slider {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
}

@media (max-width: 600px) {
  .toggle-switch {
    width: 60px;
    height: 26px;
  }

  .toggle-slider {
    width: 20px;
    height: 20px;
  }

  #radio-yearly:checked ~ .toggle-slider {
    transform: translateX(30px);
  }
}

/* Footer */

.site-footer {
  background: #000;
  padding: 2rem 0;
  border-top: 2px solid var(--b);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-column {
  flex: 1 1 100%;
}

.footer-column h2 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.footer-column p,
.footer-column li {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

@media (min-width: 768px) {
  .footer-column {
    flex: 1 1 calc(25% - 2rem);
  }
}

/* ----------------------------------
   Rechung und Lager
----------------------------------- */

.module-title {
  margin: 1rem 0 0.5rem 240px; /* 240px = Breite Sidebar + kleiner Puffer */
  color: #eee;
  font-weight: 500;
  text-align: center;
}

@media (max-width: 768px) {
  .module-title {
    margin-left: 1rem;
  }
}

/* Sidebar */

.sidebar {
  position: fixed;
  left: 0;
  width: 220px;
  background-color: #111;
  padding-top: 1rem;
  overflow-y: auto;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

.sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar li a {
  display: block;
  padding: 0.75rem 1rem;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.sidebar li a:hover,
.sidebar li a.active {
  background-color: #222;
  color: #4e5dff;
}

/* Main Content */

.main-content {
  position: relative;
  margin-left: 220px; /* genau die Breite der Sidebar */
  width: calc(100% - 220px); /* Restbreite des Viewports */
  min-width: 0; /* verhindert Überlauf unter Sidebar */
  padding: 2rem; /* Dein bestehendes Padding */
  box-sizing: border-box;
}

/* Back-Link (Variante) */

.back-link {
  display: inline-block;
  margin: 1rem 0;
  color: #4e5dff;
}

/* Lager / Bestand */

.lager-container {
  max-width: 1666px;
  margin: 0 auto;
  padding: 2rem;
  box-sizing: border-box;
}

.lager-container > .header-row,
.lager-container > .controls-row,
.lager-container > .table-container,
.lager-container > .pagination-row {
  margin-bottom: 2rem;
}

.header-row {
  text-align: center;
}

.header-row .module-title {
  font-size: 1.75rem;
  color: #eee;
  margin: 0;
}

.controls-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.total-value {
  font-size: 1rem;
  color: #eee;
}

.search-create {
  display: flex;
  gap: 0.5rem;
}

.search-create input[type="text"] {
  min-width: 200px;
  max-width: 300px;
  padding: 0.6rem 1rem;
  border: 1px solid #555;
  border-radius: 4px;
  background: #222;
  color: #eee;
  transition: border-color 0.2s;
}

.search-create input[type="text"]:focus {
  border-color: #4e5dff;
  outline: none;
}

.search-create button.glow {
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  background: #4e5dff;
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(78, 93, 255, 0.7);
  transition: box-shadow 0.2s, transform 0.1s;
}

.search-create button.glow:hover {
  box-shadow: 0 0 16px rgba(78, 93, 255, 1);
  transform: translateY(-1px);
}

/* Tabelle (Lager) */

.paket-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #111;
  color: #eee;
  margin: 0 auto;
}

.paket-table thead {
  background: #1f2a78;
}

.paket-table th,
.paket-table td {
  padding: 0.75rem 1rem;
  text-align: left;
}

.paket-table tbody tr:nth-child(even) {
  background: #181818;
}

.paket-table button.small {
  padding: 0.25rem 0.5rem;
  font-size: 0.9rem;
  background: #222;
  border: 1px solid #555;
  border-radius: 4px;
  color: #eee;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.paket-table button.small:hover {
  background: #333;
  border-color: #4e5dff;
}

/* Pagination */

.pagination-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.pagination-row span {
  color: #eee;
}

.pagination-row a {
  color: #4e5dff;
  text-decoration: none;
  margin: 0 0.25rem;
  transition: text-decoration 0.2s;
}

.pagination-row a:hover {
  text-decoration: underline;
}

.pagination-row a.active {
  font-weight: bold;
  text-decoration: underline;
}

.pagination-row select,
.controls-row select {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  background: #222;
  color: #eee;
  border: 1px solid #555;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.pagination-row select:focus,
.controls-row select:focus {
  border-color: #4e5dff;
  outline: none;
}

/* Pfeil-Icon (optional) */
.pagination-row select {
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D'10'%20height%3D'6'%20viewBox%3D'0%200%2010%206'%20xmlns%3D'http%3A//www.w3.org/2000/svg'%3E%3Cpath%20d%3D'M0%200l5%206%205-6z'%20fill%3D'%23eee'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 10px 6px;
  padding-right: 2rem;
}

/* Modal (Lager) */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  overflow-y: auto;
}

.modal {
  background: #111;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 80%;
  color: #eee;
  position: relative;
  overflow-y: auto;
  max-height: 90vh;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #aaa;
  cursor: pointer;
}

.modal h2 {
  margin-top: 0;
  text-align: center;
}

.modal .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.modal .form-row label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
}

.modal .form-row input,
.modal .form-row select {
  margin-top: 0.25rem;
  padding: 0.5rem;
  background: #222;
  color: #eee;
  border: 1px solid #555;
  border-radius: 4px;
}

.modal button.glow {
  margin-top: 1rem;
  width: 100%;
  padding: 0.75rem;
}

/* Angebots-Modal (offer-*) */

.offer-modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  z-index: 1000;
}

.offer-modal-overlay.show {
  display: flex;
}

.offer-modal-content {
  background: #181818;
  width: 90vw;
  height: 90vh;
  padding: 1.5rem;
  box-sizing: border-box;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.offer-modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.offer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.offer-header .offer-title {
  font-size: 1.75rem;
  color: #fff;
  margin: 0;
}

.offer-header .modal-close {
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 1.5rem;
  cursor: pointer;
}

.offer-form-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.offer-form-row > * {
  flex: 1 1 200px;
}

.offer-form-row textarea {
  resize: vertical;
}

.offer-form-row input,
.offer-form-row select,
.offer-form-row textarea {
  padding: 0.6rem 0.75rem;
  border: 1px solid #333;
  border-radius: 4px;
  background: #222;
  color: #eee;
  font-size: 1rem;
  box-sizing: border-box;
}

.offer-search-create {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.offer-search-create label {
  display: flex;
  align-items: center;
  color: #eee;
  font-size: 1rem;
}

.offer-search-create input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
}

.offer-paket-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 0.5rem;
}

.offer-paket-table thead {
  background: #283593;
}

.offer-paket-table th,
.offer-paket-table td {
  padding: 0.75rem 0.5rem;
  color: #fff;
}

.offer-paket-table tbody tr {
  background: #1e1e1e;
}

.offer-paket-table tbody tr:nth-child(even) {
  background: #262626;
}

.offer-paket-table th {
  text-align: left;
}

.offer-paket-table td,
.offer-paket-table th {
  border: none;
}

#addItemBtn {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
}

/* Summen-Block */

.offer-sums {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  color: #fff;
  font-size: 1.1rem;
  gap: 1rem;
}

/* Speichern */

.offer-save {
  width: 100%;
  padding: 1rem;
  background: #3f51b5;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1.2rem;
  cursor: pointer;
}

.offer-save:hover {
  background: #303f9f;
}

.offer-modal-content input,
.offer-modal-content select,
.offer-modal-content textarea {
  background: #242526 !important;
  color: #ececec !important;
  border: 1px solid #3a3b3c !important;
}

/* Beschreibung-Zeile (toggle) */

.desc-toggle {
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.95rem;
}

.item-desc-textarea {
  display: none;
  width: 100%;
  padding: 0.5rem;
  background: #242526;
  color: #ececec;
  border: 1px solid #3a3b3c;
  border-radius: 4px;
  margin-top: 0.25rem;
  resize: vertical;
}

#addItemBtn {
  background: none;
  border: none;
  color: var(--accent);
  text-decoration: underline;
  padding: 0;
  font: inherit;
  cursor: pointer;
  margin: 0.5rem 0;
}

#addItemBtn:hover {
  color: var(--accent-dk);
}

/* Luftigere Abstände */

.offer-paket-table td,
.offer-paket-table th {
  padding: 0.8rem 0.6rem;
}

.offer-paket-table .item-desc-textarea {
  padding: 0.6rem;
}

.desc-row {
  display: none;
  background: var(--bg-mid);
}

.desc-row td {
  padding-left: 2rem;
}

.desc-toggle {
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.95rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.item-desc-textarea {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid #333;
  border-radius: 4px;
  color: var(--text-light);
  box-sizing: border-box;
  padding: 0.5rem;
  resize: vertical;
}

/* Spaltenbreiten */

.offer-paket-table th:nth-child(1),
.offer-paket-table td:nth-child(1) {
  width: 30%;
}

.offer-paket-table th:nth-child(6),
.offer-paket-table td:nth-child(6) {
  width: 8%;
}

.item-name {
  width: 100%;
  min-width: 200px;
}

.item-rabatt {
  width: 4rem;
}

.offer-paket-table td input,
.offer-paket-table td select,
.offer-paket-table td textarea {
  box-sizing: border-box;
}

.item-qty {
  width: 5rem;
}
