/* ========================================
   Desswahnsinns Textildruck
   ======================================== */

/* --- Bunny Fonts (DSGVO-konform) --- */
@import url('https://fonts.bunny.net/css?family=bebas-neue:400|work-sans:300,400,500,600');

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0b0b0b;
  --surface: #141414;
  --card: #1a1a1a;
  --border: #2a2a2a;
  --accent: #0e85d4;
  --accent-light: #42a5f5;
  --accent-copper: #d4890e;
  --accent-gold: #c9940a;
  --text: #e0e0e0;
  --text-muted: #888;
  --text-dim: #555;
  --white: #f5f5f5;
  --font-heading: 'Bebas Neue', sans-serif;
  --font-body: 'Work Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color 0.2s;
}

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

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: var(--white);
}

h1 { font-size: clamp(3rem, 8vw, 6rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 0;
}

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  background: rgba(11, 11, 11, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--white);
  letter-spacing: 0.06em;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent-light);
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 6rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(200, 148, 42, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(200, 148, 42, 0.04) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-logo {
  width: 120px;
  height: auto;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  filter: brightness(0) invert(1);
}

.hero h1 {
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.15s forwards;
}

.hero h1 .accent {
  color: var(--accent);
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.3s forwards;
}

.hero-cta {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.3s, color 0.3s;
  opacity: 0;
  animation: fadeUp 0.8s ease 0.45s forwards;
}

.hero-cta:hover {
  background: var(--accent);
  color: var(--bg);
}

/* --- Divider line --- */
.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-copper));
  margin: 0 auto 2rem;
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 300;
}

/* --- Services / Angebot --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 2.5rem 2rem;
  transition: border-color 0.3s, transform 0.3s;
}

.service-card:hover {
  border-color: var(--accent-copper);
  transform: translateY(-4px);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-gold);
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
}

.service-icon-img {
  width: 36px;
  height: 36px;
  vertical-align: middle;
  margin-right: 0.75rem;
}

.service-card h3 {
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  font-weight: 300;
  font-size: 0.95rem;
}

/* --- Tech / Verfahren --- */
.tech-section {
  background: var(--surface);
}

.tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.tech-item {
  padding: 2rem 0;
}

.tech-item h3 {
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tech-item h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background: var(--accent-copper);
  flex-shrink: 0;
}

.tech-item p {
  color: var(--text-muted);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.8;
}

.tech-item ul {
  list-style: none;
  margin-top: 1rem;
}

.tech-item ul li {
  color: var(--text-muted);
  font-weight: 300;
  font-size: 0.95rem;
  padding: 0.3rem 0;
  padding-left: 1.2rem;
  position: relative;
}

.tech-item ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 6px;
  height: 6px;
  background: var(--accent-copper);
}

/* --- Contact / Kontakt --- */
.contact-section {
  text-align: center;
}

.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.contact-item {
  text-align: center;
}

.contact-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.1em;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.contact-value {
  color: var(--text);
  font-weight: 300;
}

.contact-value a {
  color: var(--text);
}

.contact-value a:hover {
  color: var(--accent-light);
}

/* --- Footer --- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.85rem;
  font-weight: 300;
}

.footer-links {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 400;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent-light);
}

/* --- Legal Pages --- */
.legal-page {
  padding-top: 8rem;
  padding-bottom: 4rem;
  min-height: 100vh;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 0.5rem;
}

.legal-content .divider {
  margin: 0 0 2.5rem;
}

.legal-content p {
  margin-bottom: 1rem;
  font-weight: 300;
  font-size: 0.95rem;
}

.legal-content h2 {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-light);
}

.legal-content h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content ul,
.legal-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.legal-content li {
  font-weight: 300;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.legal-content a {
  color: var(--accent-light);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content table {
  width: 100%;
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin: 1.5rem 0;
  background: var(--card);
}

.legal-content table td {
  padding: 1rem;
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-content figure {
  margin: 1.5rem 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--accent-light);
}

.back-link::before {
  content: '\2190';
}

/* --- Animations --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--surface);
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    gap: 1.5rem;
    transition: right 0.3s ease;
    border-left: 1px solid var(--border);
  }

  .nav-links.open {
    right: 0;
  }

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

  section {
    padding: 4rem 0;
  }

  .hero {
    min-height: 90vh;
    padding: 6rem 1.5rem 4rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .contact-info {
    flex-direction: column;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}
