/* ML-WebMedia – Hell und freundlich */
:root {
  --bg: #f5f7fa;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --border: rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --shadow: 0 4px 20px rgba(0,0,0,0.06);
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.logo-link {
  display: flex;
  align-items: center;
}
.logo-link img {
  height: 44px;
  width: auto;
}

.nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.nav-list a {
  color: var(--text-muted);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}
.nav-list a:hover {
  color: var(--text);
  background: var(--bg);
}

.lang-switch {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.lang-switch a,
.lang-switch span {
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}
.lang-switch a {
  color: var(--text-muted);
}
.lang-switch a:hover,
.lang-switch a.active {
  color: var(--accent);
  background: rgba(13, 148, 136, 0.12);
}
.lang-switch span {
  color: var(--text-muted);
  cursor: default;
}

/* Main */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

/* Hero */
.hero {
  padding: 4rem 0 5rem;
  text-align: center;
}
.hero-with-image {
  padding: 0 0 4rem;
}
.hero-banner {
  width: 100%;
  max-height: 380px;
  overflow: hidden;
  margin-top: 2.5rem;
  margin-bottom: 2rem;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
  padding: 0 1.5rem;
  box-sizing: border-box;
  background: var(--bg);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 24px;
}
.hero-text-card {
  max-width: 1200px;
  margin: 0 auto 0;
  padding: 2.5rem 1.5rem;
  background: var(--bg-card);
  border-radius: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
  box-sizing: border-box;
}
.hero-text-card .hero-subtitle {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--text);
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 1.25rem auto 1.75rem;
}
.hero-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}
.hero-cta:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
}

/* Section titles */
.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--text);
}
.section-title-more {
  margin-top: 3rem;
}

/* Services overview (Weitere Leistungen) */
.services-intro {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  max-width: 100%;
}
.services-overview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.service-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  text-decoration: none;
  color: inherit;
}
.service-tile:hover {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: var(--shadow);
}
.service-tile img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 0.75rem;
}
.service-tile-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.service-tile-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.35;
}
.services-cta-wrap {
  text-align: center;
  margin-top: 0.5rem;
}

/* Focus cards */
.focus-section {
  margin-bottom: 4rem;
}
.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.focus-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.focus-card:hover {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: var(--shadow);
}
.focus-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}
.focus-card p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.focus-card .link-out {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}
.focus-card .focus-card-btn {
  display: inline-block;
  margin-top: 0.5rem;
  background: var(--accent);
  color: #fff;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition), transform var(--transition);
}
.focus-card .focus-card-btn:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
}
.focus-card ul {
  list-style: none;
  margin-top: 0.75rem;
}
.focus-card li {
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}
.focus-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* Projects grid */
.projects-section {
  margin-bottom: 4rem;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.project-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.project-card:hover {
  border-color: rgba(13, 148, 136, 0.3);
  transform: translateY(-4px);
}
.project-card .img-wrap {
  aspect-ratio: 16/10;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.project-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-card .content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.project-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.project-card .content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  flex: 1;
  margin-bottom: 1rem;
}
.project-card .btn-project {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition);
}
.project-card .btn-project:hover {
  background: var(--accent-hover);
  color: #fff;
}
.project-card .btn-coming {
  cursor: default;
  background: var(--text-muted);
  opacity: 0.9;
}
.project-card .btn-coming:hover {
  background: var(--text-muted);
  color: #fff;
}

/* Content pages (Über Uns, etc.) */
.page-hero {
  padding: 2.5rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}
.page-hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--text);
  margin-bottom: 0.5rem;
}
.page-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}
.content-page {
  padding: 0 0 4rem;
  max-width: 900px;
  margin: 0 auto;
}
.content-page .content-section {
  margin-bottom: 3rem;
}
.content-page .content-section h2 {
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}
.content-page .content-section p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}
.content-page .content-section ul {
  margin: 0 0 1rem 1.5rem;
  color: var(--text-muted);
}
.content-page .content-section a {
  font-weight: 500;
}

/* Service cards (Leistungen) */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.service-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.service-card:hover {
  border-color: rgba(13, 148, 136, 0.3);
  box-shadow: var(--shadow);
}
.service-card .service-img {
  aspect-ratio: 16/10;
  background: var(--bg);
  overflow: hidden;
  flex-shrink: 0;
}
.service-card .service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-card .service-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.service-card h3 {
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.service-card .service-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.55;
  flex: 1;
}
.service-card .btn-contact {
  display: inline-block;
  align-self: flex-start;
  margin-top: auto;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition);
}
.service-card .btn-contact:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* Contact page */
.contact-intro {
  margin-bottom: 2rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.contact-intro-list {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
}
.contact-intro-list li {
  padding: 0.4rem 0;
  padding-left: 1.25rem;
  position: relative;
}
.contact-intro-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.contact-intro-list li strong {
  color: var(--text);
}
.contact-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}
.map-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
.map-wrap a {
  display: block;
  font-size: 0.9rem;
  padding: 0.75rem 1rem;
  color: var(--accent);
  text-align: center;
}
.contact-details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.contact-details h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.contact-details p, .contact-details a {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.contact-form-wrap {
  margin-top: 2rem;
}
.contact-form-wrap h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text);
}
.contact-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  margin-bottom: 1rem;
  background: #fff;
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-captcha {
  margin-top: 1rem;
}
.contact-captcha input {
  width: 6rem;
  max-width: 100%;
}
.contact-form-message {
  margin-bottom: 0.5rem;
}
.contact-form button[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}
.contact-form button[type="submit"]:hover {
  background: var(--accent-hover);
}

/* Legal pages */
.legal-page {
  padding: 2rem 0 4rem;
  max-width: 720px;
  margin: 0 auto;
}
.legal-page h1 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.legal-page h2 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}
.legal-page p,
.legal-page li {
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}
.legal-page ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  padding: 2rem 1.5rem;
  background: #fff;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}
.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-nav a:last-child {
  margin-left: auto;
}
@media (max-width: 768px) {
  .footer-nav a:last-child {
    margin-left: 0;
  }
}
.footer-copy {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
}
.cookie-banner.visible {
  display: flex;
}
.cookie-banner p {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
  min-width: 200px;
}
.cookie-banner a {
  color: var(--accent);
  text-decoration: underline;
}
.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.cookie-actions button {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: opacity var(--transition);
}
.cookie-actions button:hover {
  opacity: 0.9;
}
.cookie-actions .btn-accept {
  background: var(--accent);
  color: var(--bg);
}
.cookie-actions .btn-decline {
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

/* Back link on legal pages */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.back-link:hover {
  color: var(--accent);
}

/* Mobile menu (optional toggle for small screens) */
@media (max-width: 768px) {
  .header-inner {
    padding: 0.75rem 1rem;
  }
  .nav-list {
    width: 100%;
    justify-content: flex-start;
    padding-top: 0.5rem;
  }
  .hero {
    padding: 3rem 0 4rem;
  }
  .hero-banner {
    margin-top: 1.5rem;
    padding: 0 0.75rem;
    border-radius: 16px;
  }
  .hero-banner img {
    border-radius: 16px;
  }
  .hero-text-card {
    padding: 1.75rem 1rem;
  }
  .services-overview {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .service-tile img {
    width: 64px;
    height: 64px;
  }
  .focus-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .cookie-actions {
    justify-content: center;
  }
}
