/* ============================================================================
   BIERBICHLER SMARTFOOD – STYLE.CSS
   Mobile-First, sauber strukturiert, gut wartbar
   ============================================================================ */

/* ============================================================================
   1. DESIGN TOKENS
   Zentrale Stelle für Farben, Spacing, Typography
   ============================================================================ */

:root {
  /* Colors */
  --color-bg: #070707;
  --color-bg-subtle: #0d0d0d;
  --color-surface: #101010;
  --color-surface-hover: #131313;
  --color-text: #f2f2f2;
  --color-text-muted: #d9d9d9;
  --color-text-subtle: rgba(242, 242, 242, 0.55);
  --color-border: rgba(242, 242, 242, 0.12);
  --color-accent: #76b82a;
  --color-accent-subtle: rgba(25, 211, 107, 0.18);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Typography */
  --font-base: "Avenir Next", Avenir, Inter, system-ui, -apple-system, sans-serif;
  --font-display: "Anton", system-ui, sans-serif;
  --text-base: 1rem;
  --text-sm: 0.9rem;
  --text-lg: 1.15rem;
  --text-xl: 1.3rem;
  --text-2xl: 1.8rem;
  --text-3xl: 2.4rem;
  --text-4xl: 3.2rem;

  /* Layout */
  --container-max: 1120px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 16px;
  
  /* Effects */
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 70px rgba(0, 0, 0, 0.55);
  --transition: 0.15s ease;
}


/* ============================================================================
   2. RESET & BASE
   ============================================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-base);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: 
    radial-gradient(1000px 600px at 20% 0%, rgba(25, 211, 107, 0.10), transparent 55%),
    radial-gradient(900px 540px at 90% 20%, rgba(25, 211, 107, 0.08), transparent 60%),
    var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}


/* ============================================================================
   3. TYPOGRAPHY
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-sm);
  font-weight: normal;
}

h1 {
  font-size: var(--text-3xl);
}

h2 {
  font-size: var(--text-2xl);
}

h3 {
  font-size: var(--text-xl);
}

p {
  margin-bottom: var(--space-md);
}

.lead {
  font-size: var(--text-lg);
  color: var(--color-text);
  max-width: 65ch;
}

.eyebrow {
  display: block;
  font-size: var(--text-sm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}


/* ============================================================================
   4. LAYOUT
   ============================================================================ */

.container {
  width: min(var(--container-max), calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: var(--space-3xl) 0;
}

.section-header {
  text-align: center;
  max-width: 70ch;
  margin: 0 auto var(--space-2xl);
}

.section-header p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.bg-subtle {
  background: var(--color-bg-subtle);
}

.divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-2xl) 0;
}

/* Skip Link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  z-index: 9999;
}

.skip-link:focus {
  left: var(--space-md);
}


/* ============================================================================
   5. GRID SYSTEMS
   ============================================================================ */

.grid {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.grid-4 {
  grid-template-columns: 1fr;
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.split-reverse {
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}


/* ============================================================================
   6. COMPONENTS
   ============================================================================ */

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--text-base);
  transition: all var(--transition);
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-accent);
  /* color: #0a0a0a; */
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(25, 211, 107, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: 0 22px 46px rgba(25, 211, 107, 0.28);
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border-color: var(--color-accent);
}

.btn-secondary:hover {
  background: var(--color-accent-subtle);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(25, 211, 107, 0.35);
}


/* ---------- Cards ---------- */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--color-accent-subtle);
  border: 1px solid var(--color-accent);
  display: grid;
  place-items: center;
  margin-bottom: var(--space-md);
}

.card-icon img {
  width: 30px;
  height: 30px;
}

.card h3 {
  margin-bottom: var(--space-xs);
}

.card p {
  color: var(--color-text-muted);
  margin-bottom: 0;
}


/* ---------- Pills ---------- */

.pill {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
}

.pill h3 {
  margin-bottom: var(--space-xs);
}

.pill p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: 0;
}


/* ---------- Header / Navigation ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 7, 0.62);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-xs) 0;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  z-index: 110;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--color-accent), rgba(25, 211, 107, 0.35));
  box-shadow: 0 10px 30px rgba(25, 211, 107, 0.22);
}

.brand-text {
  font-weight: 600;
  font-size: var(--text-sm);
}

/* Mobile Navigation Toggle */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 10000;
}

.nav-toggle-label span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
  opacity: 0;
}

.nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  background: rgba(7, 7, 7, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-left: 1px solid var(--color-border);
  padding: 5rem var(--space-xl) var(--space-2xl);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  z-index: 9999;
  border-bottom-left-radius: var(--radius-lg); 
}

.nav-toggle:checked ~ .nav {
  transform: translateX(0);
}

.nav a {
  color: var(--color-text-muted);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.nav a.btn {
  padding: 0.95rem 1.15rem;
  border-bottom: none;
  color: #0a0a0a;
}

.nav a#btn-contact {
  color: #ffffff;
}

.nav a:hover {
  color: var(--color-text);
  border-bottom-color: var(--color-accent);
}

.nav a.btn:hover,
.nav a#btn-contact:hover {
  border-bottom: none;
  color: #ffffff;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    /* linear-gradient(90deg, rgba(7, 7, 7, 0.85) 0%, rgba(7, 7, 7, 0.5) 50%, rgba(7, 7, 7, 0.75) 100%),
    radial-gradient(700px 420px at 30% 40%, rgba(25, 211, 107, 0.14), transparent 60%); */
    
    linear-gradient(90deg,
      rgba(7, 7, 7, 0.85) 0%,
      rgba(7, 7, 7, 0.55) 55%,
      rgba(7, 7, 7, 0.15) 80%,
      rgba(7, 7, 7, 0) 100%
    ),
    radial-gradient(700px 420px at 30% 40%, rgba(25, 211, 107, 0.14), transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: var(--space-3xl) 0;
  max-width: 65ch;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.hero-actions .btn {
  width: 100%;
}

.hero-stats {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.stat {
  background: rgba(16, 16, 16, 0.45);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
  backdrop-filter: blur(6px);
}

.stat-label {
  display: block;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: var(--space-xs);
}

.stat-value {
  display: block;
  font-weight: 600;
}


/* ---------- Robot Cards ---------- */

.robot-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.robot-img {
  border-bottom: 1px solid var(--color-border);
}

.robot-img img {
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.robot-body {
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  min-height: 270px; /* Mindesthöhe für Harmonie */
}

.robot-body h3 {
  margin-bottom: var(--space-sm);
}

.robot-body p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  flex: 1; /* Nimmt verfügbaren Platz ein */
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-family: var(--font-base);
  font-weight: 400;
  letter-spacing: 0.01em;
  border-radius: 999px;
  background: var(--color-accent-subtle);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  margin-left: var(--space-xs);
  vertical-align: text-top; 
}

.specs {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: var(--space-sm);
}

.spec {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: var(--text-sm);
}

.spec-label {
  color: var(--color-text-subtle);
}

.spec-value {
  font-weight: 600;
  text-align: right;
}


/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  gap: var(--space-lg);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  display: flex; /* Wichtig für Höhen-Streckung */
}

.gallery-item .placeholder,
.gallery-item img {
  width: 100%;
  flex: 1; /* Füllt verfügbare Höhe */
}

/* ---------- Video ---------- */
.video-section {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-subtle);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius);
}

/* ---------- Usecase Layout ---------- */
.usecase-layout {
  display: grid;
  gap: var(--space-lg);
}

.usecase-feature {
  background: linear-gradient(180deg, rgba(19, 19, 19, 0.92), rgba(12, 12, 12, 0.92));
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.usecase-feature-img {
  border-bottom: 1px solid var(--color-border);
}

.usecase-feature-img img {
  border-radius: var(--radius) var(--radius) 0 0;
}

.usecase-feature-body {
  padding: var(--space-xl);
}

.usecase-feature-body h3 {
  margin-bottom: var(--space-sm);
}

.usecase-feature-body p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.check-list {
  display: grid;
  gap: var(--space-sm);
}

.check-list li {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-start;
  color: var(--color-text-muted);
}

.check-list li::before {
  content: "→";
  color: var(--color-accent);
  flex-shrink: 0;
}

.usecase-stack {
  display: grid;
  gap: var(--space-lg);
}

.usecase-mini {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--space-md);
  align-items: start;
}

.usecase-mini-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--color-accent-subtle);
  border: 1px solid var(--color-accent);
}

.usecase-mini h3 {
  font-size: var(--text-base);
  margin-bottom: var(--space-xs);
}

.usecase-mini p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  margin-bottom: 0;
}


/* ---------- Service & Steps ---------- */

.service-list {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  display: grid;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.service-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
  margin-top: 0.5rem;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(25, 211, 107, 0.18);
}

.steps {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  display: grid;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--space-md);
  align-items: center;
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: #ffffff;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 34px rgba(25, 211, 107, 0.20);
}


/* ---------- FAQ ---------- */

.faq {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-xl);
  margin-top: var(--space-2xl);
}

.faq h3 {
  margin-bottom: var(--space-sm);
}

.faq > p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.faq-list {
  display: grid;
  gap: var(--space-md);
}

.faq-item {
  background: rgba(7, 7, 7, 0.45);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-md);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "▾";
  color: var(--color-accent);
  transition: transform var(--transition);
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-item p {
  color: var(--color-text-muted);
  padding-top: var(--space-md);
  margin-bottom: 0;
}


/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  gap: var(--space-xl);
}

.contact-info {
  display: grid;
  gap: var(--space-lg);
}

.contact-info a {
  color: var(--color-accent);
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-form {
  padding: var(--space-xl);
}

.contact-form h3 {
  margin-bottom: var(--space-xs);
}

.contact-form > p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-xl);
}

.form-grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.form-field {
  display: grid;
  gap: var(--space-xs);
}

.form-field-full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: var(--text-sm);
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: rgba(7, 7, 7, 0.55);
  color: var(--color-text);
  font-family: inherit;
  font-size: var(--text-base);
  transition: all var(--transition);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--color-text-subtle);
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(25, 211, 107, 0.12);
}

.privacy-label {
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  margin-bottom: 20px;
}

.privacy-label input[type="checkbox"] {
  width: auto;        /* verhindert die Ausbreitung */
  flex-shrink: 0;     /* Checkbox bleibt klein */
}

.privacy-text {
  display: block;     /* macht den Text EIN Block */
  flex: 1;            /* verhindert Spaltenbildung */
  line-height: 1.4;
}


/* ---------- Footer ---------- */

.footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-subtle);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.footer-title {
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: var(--text-sm);
}

.footer-nav a {
  color: var(--color-text-muted);
}

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--color-text-subtle);
  margin-bottom: 0;
}

/* ============================================================================
   7. UTILITIES
   ============================================================================ */

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.placeholder {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  padding: var(--space-xl);
  min-height: 200px;
}

.placeholder span {
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  text-align: center;
}

.placeholder-square {
  aspect-ratio: 1 / 1;
}

.placeholder-landscape {
  aspect-ratio: 16 / 9;
}

.placeholder-portrait {
  aspect-ratio: 4 / 5;
}

/* ---------- CTA Band ---------- */

.cta-band {
  padding: 0;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
  padding: var(--space-2xl) 0;
  align-items: flex-start;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.cta-content h2 {
  margin-bottom: var(--space-xs);
}

.cta-content p {
  color: var(--color-text-muted);
  margin-bottom: 0;
  max-width: 60ch;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* Desktop: Horizontal Layout */
@media (min-width: 768px) {
  .cta-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-2xl);
  }
}

/* ============================================================================
   8. MEDIA QUERIES (Mobile-First)
   ============================================================================ */

/* -------- Small Tablets: 640px+ -------- */
@media (min-width: 640px) {
  
  /* Typography scales up */
  h1 {
    font-size: var(--text-4xl);
  }

  h2 {
    font-size: var(--text-3xl);
  }

  /* Hero */
  .hero-actions {
    flex-direction: row;
    width: auto;
  }

  .hero-actions .btn {
    width: auto;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Grids: 2 columns */
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact Form */
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Gallery: Harmonisches 2x2 Grid mit definierten Rows */
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 1fr 1fr;
  }
  
  /* Aspect-Ratios deaktivieren - Grid bestimmt die Höhe */
  .gallery-item .placeholder {
    aspect-ratio: unset;
    height: 100%;
    min-height: 250px; /* Mindesthöhe für Harmonie */
  }
  
  .gallery-item img {
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 767px) {
  .robot-img img {
    aspect-ratio: 16 / 9; /* Landscape statt Square auf Mobile */
  }
}

/* -------- Tablets: 768px+ -------- */
@media (min-width: 768px) {

  /* Container more padding */
  .container {
    width: min(var(--container-max), calc(100% - 4rem));
  }

  /* Section spacing */
  .section {
    padding: var(--space-3xl) 0;
  }

  /* Hide mobile nav toggle */
  .nav-toggle-label {
    display: none;
  }

  /* Desktop navigation */
  .nav {
    position: static;
    width: auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 0;
    transform: none;
    flex-direction: row;
    gap: var(--space-lg);
    align-items: center;
  }

  .nav a {
    padding: var(--space-xs) 0;
  }

  /* Split layouts */
  .split {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-2xl);
    align-items: start ;
  }

  .split-reverse {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
  }

    /* Grids: 2 columns */
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Grids: 3 columns */
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Contact Grid */
  .contact-grid {
    grid-template-columns: 0.9fr 1.1fr;
  }

  /* Usecase Layout */
  .usecase-layout {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: start;
  }

  /* Gallery: Komplexes Layout */
  .gallery {
    grid-template-columns: 1.25fr 0.75fr 0.75fr;
    grid-template-rows: auto auto;  /* Beide Rows natürliche Höhe */
  }

  .gallery-large {
    grid-column: 1;
    grid-row: 1;
  }

  .gallery-item:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .gallery-item:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
  }

  .gallery-wide {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  
  /* Breites Bild: Standard 16:9 Landscape */
  .gallery-wide .placeholder {
    aspect-ratio: 16 / 9;
    min-height: unset;
  }
  
  .gallery-wide img {
    aspect-ratio: 16 / 9;
    height: auto;
  }
}

/* -------- Desktop: 1024px+ -------- */
@media (min-width: 1024px) {

  /* Typography max sizes */
  :root {
    --text-3xl: 2.8rem;
    --text-4xl: 3.6rem;
  }

  /* Section spacing max */
  .section {
    padding: 5rem 0;
  }

  /* Grids: 4 columns */
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  /* Hero enhancements */
  .hero-content {
    max-width: 70ch;
  }
}
