/* all4net GmbH - Zentrales Stylesheet */
/* Konsistente Styles für alle Seiten */

:root {
  --brand-blue: #1565c0;
  --brand-light: #e3f2fd;
  --text-primary: #1a1a1a;
  --text-secondary: #555;
  --text-muted: #777;
  --bg-primary: #ffff;
  --bg-secondary: #fafbff;
  --border-light: #e8eef7;
  --shadow-soft: 0 4px 20px rgba(21, 101, 192, 0.08);
  --shadow-medium: 0 8px 32px rgba(21, 101, 192, 0.12);
  --radius: 16px;
  --radius-small: 8px;
  --max-width: 1000px;
  --container-width: 680px;
  --transition: all 0.2s ease;
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-secondary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Page Layout */
.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  min-height: 100vh;
}

/* Header */
header {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto 2rem auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 1.5rem;
  background: var(--bg-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
}

.logo {
  width: 200px;
  height: auto;
  display: block;
  transition: var(--transition);
}

.company-title {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

/* Headline-Varianten für Desktop und Mobile */
.headline-mobile {
  display: none;
}

@media screen and (max-width: 768px) {
  .headline-desktop {
    display: none;
  }
  .headline-mobile {
    display: block;
  }
}

/* Navigation */
nav.desktop {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

nav.desktop a {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-small);
  transition: var(--transition);
}

nav.desktop a:hover,
nav.desktop a:focus {
  background: var(--brand-light);
  text-decoration: none;
  outline: none;
}

nav.desktop a.active {
  background: var(--brand-blue);
  color: white;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: var(--radius-small);
}

.mobile-toggle:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

.hamburger {
  width: 24px;
  height: 18px;
  display: inline-block;
  position: relative;
}


.hamburger span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand-blue);
  display: block;
  border-radius: 2px;
  transition: transform .35s ease, opacity .25s ease;
  transform-origin: center;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 8px; }
.hamburger span:nth-child(3) { bottom: 0; }

/* Animation: Hamburger -> X wenn Button .open hat */
.mobile-toggle.open .hamburger span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.mobile-toggle.open .hamburger span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.open .hamburger span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto 1rem auto;
  background: var(--bg-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-light);
  padding: 1rem;
}

.mobile-nav a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--radius-small);
  transition: var(--transition);
}

.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--brand-light);
  text-decoration: none;
}

.mobile-nav a.active {
  background: var(--brand-blue);
  color: white;
}

/* Main Content Container */
main.container {
  background: var(--bg-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-medium);
  padding: 3rem;
  max-width: var(--container-width);
  width: 100%;
  margin: 0 auto;
  border: 1px solid var(--border-light);
}

/* Hero Section */
.hero-section {
  text-align: center;
  margin-bottom: 3rem;
}

.eyebrow {
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* Page Title (für Unterseiten) */
.page-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
  line-height: 1.2;
  text-align: center;
}

.page-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.5;
  text-align: center;
}

/* Sections */
.section {
  margin-bottom: 2.5rem;
}

.section-title {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--brand-light);
  padding-bottom: 0.5rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.service-item {
  background: var(--bg-secondary);
  padding: 1.5rem;
  border-radius: var(--radius-small);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.service-item:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.service-title {
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.service-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Content Grid (für Referenzen, etc.) */
.content-grid {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.content-item {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--radius-small);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.content-item:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.content-item h3 {
  color: var(--brand-blue);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 0.5rem 0;
}

.content-item p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* Contact Section */
.contact-section {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  text-align: center;
}

.contact-title {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.contact-info {
  margin-bottom: 1.5rem;
}

.address {
  font-style: normal;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.email-link {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
}

.email-link:hover,
.email-link:focus {
  text-decoration: underline;
}

/* CTA Buttons */
.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.cta {
  display: inline-block;
  background: var(--brand-blue);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-small);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  box-shadow: var(--shadow-soft);
}

.cta:hover,
.cta:focus {
  background: #0d47a1;
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
  text-decoration: none;
}

.cta.secondary {
  background: transparent;
  color: var(--brand-blue);
  border: 2px solid var(--brand-blue);
  box-shadow: none;
}

.cta.secondary:hover,
.cta.secondary:focus {
  background: var(--brand-blue);
  color: white;
  transform: translateY(-1px);
}

/* Links */
a {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
}

a:hover,
a:focus {
  text-decoration: underline;
  outline: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

/* Text Styles */
p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

strong {
  font-weight: 600;
  color: var(--text-primary);
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

/* Footer */
footer {
  margin-top: 3rem;
  width: 100%;
  max-width: var(--max-width);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 1.5rem;
  background: var(--bg-primary);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

footer a {
  color: var(--text-muted);
  margin: 0 0.5rem;
}

footer a:hover {
  color: var(--brand-blue);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: var(--bg-primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-light);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  z-index: 9999;
  max-width: 900px;
  margin: 0 auto;
}

.cookie-banner .cb-text {
  flex: 1;
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.4;
}

.cookie-banner .cb-actions {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-small);
  text-decoration: none;
  font-weight: 500;
  border: 0;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition);
}

.btn.primary {
  background: var(--brand-blue);
  color: white;
}

.btn.primary:hover {
  background: #0d47a1;
}

.btn.ghost {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.btn.ghost:hover {
  background: var(--bg-secondary);
}

/* Cookie Settings Modal */
.cookie-settings {
  display: none;
}

.cookie-settings.open {
  display: block;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  max-width: 500px;
  width: calc(100% - 2rem);
  border: 1px solid var(--border-light);
}

.cookie-settings h3 {
  margin-top: 0;
  color: var(--brand-blue);
  font-weight: 600;
}

.cookie-settings label {
  display: block;
  margin: 1rem 0;
  cursor: pointer;
  font-size: 0.95rem;
}

.cookie-settings input[type="checkbox"] {
  margin-right: 0.5rem;
}

/* Breadcrumb Navigation */
.breadcrumb {
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--brand-blue);
  text-decoration: none;
}

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

.breadcrumb span {
  margin: 0 0.5rem;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  background: var(--bg-primary);
  border-radius: var(--radius-small);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

th, td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

th {
  background: var(--bg-secondary);
  font-weight: 600;
  color: var(--text-primary);
}

tr:last-child td {
  border-bottom: none;
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-small);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page {
    padding: 1rem 0.5rem;
  }

  header {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .logo {
    width: 160px;
  }

  .company-title {
    font-size: 1rem;
  }

  nav.desktop {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
    align-items: center;
    position: absolute;
    top: 1rem;
    right: 1rem;
  }

  .mobile-nav.open {
    display: block;
  }

  main.container {
    padding: 2rem 1.5rem;
    border-radius: var(--radius-small);
  }

  .hero-title,
  .page-title {
    font-size: 1.8rem;
  }

  .services-grid,
  .content-grid {
    gap: 0.75rem;
  }

  .service-item,
  .content-item {
    padding: 1.25rem;
  }

  .cta-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .cta {
    width: 100%;
    text-align: center;
  }

  .cookie-banner {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .cookie-banner .cb-actions {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-title,
  .page-title {
    font-size: 1.6rem;
  }

  main.container {
    padding: 1.5rem 1rem;
  }

  .service-item,
  .content-item {
    padding: 1rem;
  }

  th, td {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }
}

/* Print Styles */
@media print {
  .cookie-banner,
  .mobile-toggle,
  .mobile-nav {
    display: none !important;
  }
  
  .page {
    padding: 0;
  }
  
  header,
  main.container,
  footer {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}