/* BlitzBlank Berlin – Industrial Modern CSS Theme */

/* =========================
   FONT IMPORTS
   ========================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;900&family=Open+Sans:wght@400;600&display=swap');

/* =========================
   CSS VARIABLES
   ========================= */
:root {
  --color-primary: #245A76;
  --color-secondary: #F0F4F7;
  --color-accent: #1B7A4E;
  --color-bg: #181C20;
  --color-bg-dark: #131619;
  --color-bg-light: #23272B;
  --color-metal: #A7B1B7;
  --color-white: #FFFFFF;
  --color-grey: #B0B6BB;
  --color-shadow: rgba(36, 90, 118, 0.12);
  --color-shadow-strong: rgba(36, 90, 118, 0.25);
  --color-border: #31363B;
  --color-success: #46B481;
  --font-display: 'Montserrat', Arial, Helvetica, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --radius: 10px;
  --radius-sm: 6px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
  --shadow-card: 0 2px 12px var(--color-shadow);
  --shadow-card-hover: 0 4px 24px var(--color-shadow-strong);
  --shadow-metal: 0 1px 0 #3A4045, 0 2px 8px #1a1d20;
  --header-height: 72px;
  --z-header: 100;
  --z-mobile-menu: 200;
  --z-cookie: 300;
}

/* =========================
   RESET & BASE
   ========================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 16px;
  background: var(--color-bg);
  color: var(--color-grey);
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-grey);
  min-height: 100vh;
  line-height: 1.6;
  letter-spacing: 0.01em;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover, a:focus {
  color: var(--color-success);
}

/* =========================
   TYPOGRAPHY
   ========================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--color-white);
  font-weight: 900;
  letter-spacing: 0.01em;
  margin-bottom: 0.5em;
}
h1 {
  font-size: 2.2rem;
  line-height: 1.1;
}
h2 {
  font-size: 1.6rem;
  line-height: 1.2;
}
h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-metal);
}
h4, h5, h6 {
  font-size: 1rem;
  color: var(--color-metal);
}
p, ul, ol, li {
  font-size: 1rem;
  color: var(--color-grey);
}
strong {
  color: var(--color-white);
  font-weight: 700;
}

/* =========================
   LAYOUT CONTAINERS
   ========================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* =========================
   HEADER & NAVIGATION
   ========================= */
header {
  width: 100%;
  background: var(--color-bg-dark);
  box-shadow: var(--shadow-metal);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 20px;
}
header nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-metal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1rem;
  padding: 8px 0;
  position: relative;
  transition: color var(--transition);
}
header nav a:hover, header nav a:focus {
  color: var(--color-success);
}
header img {
  height: 44px;
  width: auto;
  filter: grayscale(0.2) contrast(1.2) drop-shadow(0 2px 4px #0004);
}
.btn-primary {
  background: linear-gradient(90deg, var(--color-primary) 60%, var(--color-accent) 100%);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  border-radius: var(--radius);
  padding: 12px 32px;
  box-shadow: 0 2px 8px var(--color-shadow);
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  margin-left: 16px;
  display: inline-block;
}
.btn-primary:hover, .btn-primary:focus {
  background: linear-gradient(90deg, var(--color-accent) 60%, var(--color-primary) 100%);
  box-shadow: 0 4px 24px var(--color-shadow-strong);
  transform: translateY(-2px) scale(1.03);
}

/* Hamburger menu button */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-metal);
  font-size: 2rem;
  cursor: pointer;
  margin-left: 16px;
  transition: color var(--transition);
  z-index: var(--z-mobile-menu);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus {
  color: var(--color-success);
}

/* Mobile menu overlay */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg, #23272B 80%, #1B7A4E 100%);
  box-shadow: 0 0 40px #000b;
  z-index: var(--z-mobile-menu);
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1), opacity 0.3s;
}
.mobile-menu.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu-close {
  background: none;
  border: none;
  color: var(--color-metal);
  font-size: 2.2rem;
  align-self: flex-end;
  margin: 24px 24px 0 0;
  cursor: pointer;
  transition: color var(--transition);
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  color: var(--color-success);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  align-items: flex-start;
  margin: 40px 0 0 40px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  transition: color var(--transition);
  padding: 8px 0;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  color: var(--color-success);
}

/* Hide desktop nav on mobile, show hamburger */
@media (max-width: 1024px) {
  header nav, header .btn-primary {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
}
@media (min-width: 1025px) {
  .mobile-menu {
    display: none !important;
  }
}

/* =========================
   MAIN SECTIONS & SPACING
   ========================= */
main {
  width: 100%;
  background: var(--color-bg);
  min-height: 60vh;
}
section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--color-bg-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  position: relative;
}
section:last-child {
  margin-bottom: 0;
}

/* =========================
   FLEXBOX LAYOUTS
   ========================= */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: var(--color-bg-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
  position: relative;
  padding: 24px;
  min-width: 260px;
  flex: 1 1 300px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.card:hover, .card:focus-within {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px) scale(1.02);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--color-secondary);
  color: #23272B;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px var(--color-shadow);
  margin-bottom: 20px;
  min-width: 260px;
  flex: 1 1 320px;
  font-size: 1.05rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.testimonial-card strong {
  color: var(--color-primary);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  box-shadow: 0 4px 24px var(--color-shadow-strong);
  transform: translateY(-2px) scale(1.01);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* Feature grid for Leistungen/Services */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}
.feature-grid > div {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 24px 20px;
  min-width: 220px;
  flex: 1 1 260px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.feature-grid > div:hover, .feature-grid > div:focus-within {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px) scale(1.02);
}

/* FAQ List */
.faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.faq-list > div {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  padding: 20px 18px;
  min-width: 220px;
  flex: 1 1 320px;
  margin-bottom: 20px;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}
.faq-list > div:hover, .faq-list > div:focus-within {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px) scale(1.01);
}

/* =========================
   TABLES
   ========================= */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0 20px 0;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
thead {
  background: var(--color-primary);
}
th, td {
  padding: 16px 12px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1rem;
}
th {
  color: var(--color-white);
  font-weight: 700;
  letter-spacing: 0.03em;
}
td {
  color: var(--color-grey);
  border-bottom: 1px solid var(--color-border);
}
tr:last-child td {
  border-bottom: none;
}

/* =========================
   LISTS
   ========================= */
ul, ol {
  margin-left: 1.2em;
  margin-bottom: 1em;
}
ul li, ol li {
  margin-bottom: 0.5em;
  position: relative;
  padding-left: 0.5em;
}
ul li::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: linear-gradient(135deg, var(--color-accent) 60%, var(--color-metal) 100%);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
}

/* =========================
   FOOTER
   ========================= */
footer {
  background: var(--color-bg-dark);
  color: var(--color-metal);
  padding: 40px 0 0 0;
  border-top: 2px solid var(--color-border);
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 0;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
  justify-content: space-between;
  padding-bottom: 24px;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
footer nav a {
  color: var(--color-metal);
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: color var(--transition);
}
footer nav a:hover, footer nav a:focus {
  color: var(--color-success);
}
footer img {
  height: 36px;
  filter: grayscale(0.3) contrast(1.1);
}
footer p {
  color: var(--color-grey);
  font-size: 0.97rem;
  margin-top: 8px;
}

/* =========================
   COOKIE CONSENT BANNER
   ========================= */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-cookie);
  background: linear-gradient(90deg, var(--color-bg-dark) 80%, var(--color-accent) 100%);
  color: var(--color-white);
  box-shadow: 0 -2px 16px #000a;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transition: transform 0.4s var(--transition), opacity 0.3s;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.cookie-banner p {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 0;
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.cookie-banner button {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 24px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
  margin: 0 2px;
}
.cookie-banner .accept {
  background: var(--color-success);
  color: var(--color-white);
  box-shadow: 0 2px 8px var(--color-shadow);
}
.cookie-banner .accept:hover, .cookie-banner .accept:focus {
  background: var(--color-accent);
}
.cookie-banner .reject {
  background: var(--color-bg-light);
  color: var(--color-metal);
  border: 1px solid var(--color-metal);
}
.cookie-banner .reject:hover, .cookie-banner .reject:focus {
  background: var(--color-bg);
  color: var(--color-success);
  border-color: var(--color-success);
}
.cookie-banner .settings {
  background: var(--color-primary);
  color: var(--color-white);
}
.cookie-banner .settings:hover, .cookie-banner .settings:focus {
  background: var(--color-accent);
}

/* Cookie Modal */
.cookie-modal-overlay {
  position: fixed;
  z-index: calc(var(--z-cookie) + 1);
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(24,28,32,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.cookie-modal-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}
.cookie-modal {
  background: var(--color-bg-light);
  color: var(--color-white);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px #000b;
  padding: 32px 24px 24px 24px;
  min-width: 320px;
  max-width: 95vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: cookieModalIn 0.4s cubic-bezier(.4,0,.2,1);
}
@keyframes cookieModalIn {
  from { transform: translateY(40px) scale(0.98); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--color-accent);
  font-size: 1.3rem;
  margin-bottom: 0.5em;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}
.cookie-modal .cookie-category label {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-metal);
  font-weight: 600;
}
.cookie-modal .cookie-toggle {
  appearance: none;
  width: 38px;
  height: 20px;
  background: var(--color-bg);
  border-radius: 12px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background var(--transition);
  border: 1px solid var(--color-border);
}
.cookie-modal .cookie-toggle:checked {
  background: var(--color-success);
  border-color: var(--color-success);
}
.cookie-modal .cookie-toggle::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 14px;
  height: 14px;
  background: var(--color-white);
  border-radius: 50%;
  transition: transform var(--transition);
}
.cookie-modal .cookie-toggle:checked::before {
  transform: translateX(18px);
}
.cookie-modal .cookie-category .always-on {
  color: var(--color-success);
  font-size: 0.95rem;
  font-weight: 700;
  margin-left: 8px;
}
.cookie-modal .cookie-modal-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 12px;
}
.cookie-modal .cookie-modal-actions button {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 24px;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.cookie-modal .cookie-modal-actions .accept {
  background: var(--color-success);
  color: var(--color-white);
}
.cookie-modal .cookie-modal-actions .accept:hover, .cookie-modal .cookie-modal-actions .accept:focus {
  background: var(--color-accent);
}
.cookie-modal .cookie-modal-actions .close {
  background: var(--color-bg-light);
  color: var(--color-metal);
  border: 1px solid var(--color-metal);
}
.cookie-modal .cookie-modal-actions .close:hover, .cookie-modal .cookie-modal-actions .close:focus {
  background: var(--color-bg);
  color: var(--color-success);
  border-color: var(--color-success);
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */
@media (max-width: 1024px) {
  .container {
    max-width: 98vw;
    padding: 0 10px;
  }
  .content-wrapper {
    gap: 18px;
  }
  section {
    padding: 32px 8px;
  }
  .feature-grid, .faq-list, .card-container, .content-grid, .text-image-section {
    gap: 16px;
  }
  .footer .content-wrapper {
    gap: 24px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    gap: 8px;
  }
  section {
    padding: 24px 4px;
    margin-bottom: 36px;
  }
  .content-wrapper {
    gap: 12px;
  }
  .feature-grid, .faq-list, .card-container, .content-grid {
    flex-direction: column;
    gap: 12px;
  }
  .text-image-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .testimonial-card, .feature-grid > div, .faq-list > div, .card {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }
  footer .content-wrapper {
    flex-direction: column;
    gap: 18px;
    align-items: flex-start;
  }
  .btn-primary {
    width: 100%;
    margin-left: 0;
    padding: 12px 0;
    text-align: center;
  }
}
@media (max-width: 480px) {
  h1 {
    font-size: 1.3rem;
  }
  h2 {
    font-size: 1.1rem;
  }
  .cookie-modal {
    min-width: 0;
    padding: 18px 6px 12px 6px;
  }
}

/* =========================
   MICRO-INTERACTIONS
   ========================= */
.btn-primary, .cookie-banner button, .cookie-modal .cookie-modal-actions button {
  will-change: transform, box-shadow;
}
.btn-primary:active, .cookie-banner button:active, .cookie-modal .cookie-modal-actions button:active {
  transform: scale(0.98);
}

/* =========================
   SCROLLBAR STYLING
   ========================= */
::-webkit-scrollbar {
  width: 10px;
  background: var(--color-bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: 8px;
}

/* =========================
   SELECTION COLOR
   ========================= */
::selection {
  background: var(--color-accent);
  color: var(--color-white);
}

/* =========================
   ACCESSIBILITY
   ========================= */
:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* =========================
   INDUSTRIAL MODERN EFFECTS
   ========================= */
section, .card, .feature-grid > div, .faq-list > div {
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-metal);
}

/* Metallic accent lines */
section::before {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--color-metal) 60%, var(--color-accent) 100%);
  border-radius: 2px;
  margin-bottom: 18px;
}

/* Remove accent line for first section (hero) */
main > section:first-child::before {
  display: none;
}

/* =========================
   END OF CSS
   ========================= */
