/* ========================================
   Amelus UG – Stylesheet
   Modern & Minimalistisch
   ======================================== */

/* ---- Lokale Fonts ---- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
  --color-primary: #1a1a2e;
  --color-accent: #4361ee;
  --color-accent-hover: #3a56d4;
  --color-text: #2d2d2d;
  --color-text-light: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f8f9fa;
  --color-border: #e5e7eb;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1100px;
}

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

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

nav .nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

nav .logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

nav .logo-img {
  height: 32px;
  width: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--color-text-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

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

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

/* ---- Sections ---- */

section {
  padding: 6rem 2rem;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
}

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px;
}

.hero-content {
  max-width: 680px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

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

.hero p {
  font-size: 1.15rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--color-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
}

.btn:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

/* ---- Leistungen ---- */

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

.section-header {
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  max-width: 500px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

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

.service-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: #eef0ff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ---- Kontakt ---- */

.kontakt .container {
  max-width: 600px;
}

.kontakt .section-header {
  text-align: center;
}

.kontakt .section-header p {
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form .btn {
  align-self: flex-start;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}

/* ---- Legal (Impressum) ---- */

.legal {
  padding-top: calc(64px + 4rem);
}

.legal h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
}

.legal h2 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}

.legal h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

.legal p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.legal ul {
  margin: 0.5rem 0 1rem 1.5rem;
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.8;
}

.legal li {
  margin-bottom: 0.25rem;
}

.legal a {
  color: var(--color-accent);
  text-decoration: none;
}

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

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.legal th {
  text-align: left;
  font-weight: 600;
  color: var(--color-text);
  padding: 0.5rem 0.75rem;
  border-bottom: 2px solid var(--color-border, #e5e7eb);
}

.legal td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--color-border, #e5e7eb);
  vertical-align: top;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .legal table, .legal thead, .legal tbody, .legal th, .legal td, .legal tr {
    display: block;
  }
  .legal thead { display: none; }
  .legal td {
    padding: 0.3rem 0;
    border: none;
  }
  .legal td:first-child {
    font-weight: 600;
    color: var(--color-text);
    padding-top: 0.75rem;
  }
  .legal tr { border-bottom: 1px solid var(--color-border, #e5e7eb); padding-bottom: 0.5rem; margin-bottom: 0.5rem; }
}

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

footer {
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

footer p {
  color: var(--color-text-light);
  font-size: 0.85rem;
}

footer a {
  color: var(--color-text-light);
  text-decoration: none;
}

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

/* ---- Responsive ---- */

@media (max-width: 768px) {
  section {
    padding: 4rem 1.5rem;
  }

  .hero {
    min-height: auto;
    padding-top: 120px;
    padding-bottom: 4rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  nav ul {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  nav ul.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

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

}
