/* =========================================
   Nachhilfe Urban — Style CSS
   Sanft & Professionell Design
   ========================================= */

/* === Variables === */
:root {
  --primary: #3A6EA5;
  --primary-dark: #2A5A8A;
  --secondary: #5BA88A;
  --secondary-dark: #4A987A;
  --accent: #D4854A;
  --bg: #FAFAF8;
  --bg-alt: #F0EFEB;
  --text: #333333;
  --text-light: #6B7280;
  --white: #FFFFFF;
  --shadow: rgba(0,0,0,0.1);
  --shadow-md: rgba(0,0,0,0.15);
  
  --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  
  --max-width: 1200px;
  --radius: 12px;
  --radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

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

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

a:hover {
  color: var(--primary-dark);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

p { margin-bottom: 1rem; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .container { padding: 0 24px; }
}

/* === Header / Navigation === */
.header {
  background: var(--white);
  box-shadow: 0 2px 10px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.logo span {
  color: var(--accent);
}

.nav {
  display: none;
  gap: 0;
}

.nav a {
  display: block;
  padding: 8px 16px;
  color: var(--text);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}

.nav a:hover,
.nav a.active {
  background: var(--primary);
  color: var(--white);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

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

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

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

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: var(--white);
  padding: 16px 24px;
  border-top: 1px solid var(--bg-alt);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  padding: 10px 16px;
  color: var(--text);
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.nav-mobile a:hover {
  background: var(--bg-alt);
}

@media (min-width: 768px) {
  .nav {
    display: flex;
    gap: 8px;
  }
  
  .nav-toggle {
    display: none;
  }
  
  .nav-mobile {
    display: none !important;
  }
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(58,110,165,0.3);
  color: var(--white);
}

.btn-secondary {
  background: var(--secondary);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(91,168,138,0.3);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* === Hero Section (Split Layout) === */
.hero {
  background: linear-gradient(to right, #ffffff 0%, #e8f0f8 40%, var(--primary) 100%);
  padding: 60px 0 80px;
}

.hero-split {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-split {
    flex-direction: row;
    gap: 48px;
  }
}

.hero-logo-box {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero-logo-box {
    flex: 0 0 280px;
  }
}

.hero-logo-img {
  width: 160px;
  height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(58,110,165,0.25);
}

@media (min-width: 768px) {
  .hero-logo-img {
    width: 240px;
  }
}

.hero-content {
  text-align: center;
}

@media (min-width: 768px) {
  .hero-content {
    text-align: left;
    flex: 1;
  }
}

.hero h1 {
  color: var(--primary);
  margin-bottom: 16px;
}

.hero-sub {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .hero-sub {
    margin: 0 0 32px;
  }
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}

@media (min-width: 480px) {
  .hero-buttons {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .hero-buttons {
    justify-content: flex-start;
  }
}

/* === Sections === */
.section {
  padding: 60px 0;
}

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

.section-dark {
  background: var(--text);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark p {
  color: rgba(255,255,255,0.85);
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title h2 {
  margin-bottom: 8px;
}

.section-title p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* === Cards === */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: 0 2px 12px var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-md);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.card h3 {
  margin-bottom: 12px;
  color: var(--primary);
}

.card p {
  color: var(--text-light);
  margin-bottom: 16px;
}

/* === Page Header === */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 50px 0;
  text-align: center;
}

.page-header h1 {
  color: var(--white);
  margin-bottom: 8px;
}

.page-header p {
  opacity: 0.9;
  font-size: 1.125rem;
}

/* === Content Layout === */
.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
}

@media (min-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.content-text h2 {
  margin-bottom: 16px;
  color: var(--primary);
}

.content-text h3 {
  margin-bottom: 12px;
  margin-top: 24px;
}

.content-text p {
  color: var(--text-light);
}

.content-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow);
}

.content-image img {
  width: 100%;
  height: auto;
}

/* === Gallery Grid === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform 0.2s;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* === Contact Form === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info h3 {
  color: var(--primary);
  margin-bottom: 16px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.contact-item .icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-item p {
  margin: 0;
  color: var(--text);
}

.contact-item a {
  color: var(--primary);
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 16px var(--shadow);
  margin-top: 24px;
}

.map-embed iframe {
  width: 100%;
  height: 300px;
  border: none;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--bg-alt);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
}

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

/* === Footer === */
.footer {
  background: var(--text);
  color: var(--white);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-col h4 {
  color: var(--white);
  font-size: 1.125rem;
  margin-bottom: 16px;
}

.footer-col p,
.footer-col a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  line-height: 1.8;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 24px;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
}

/* === Feature List === */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--bg-alt);
  color: var(--text-light);
}

.feature-list li:last-child {
  border-bottom: none;
}

.feature-list li::before {
  content: "✓";
  color: var(--secondary);
  font-weight: 700;
  flex-shrink: 0;
}

/* === Team === */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.team-member {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: 0 2px 12px var(--shadow);
}

.team-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 16px;
  font-weight: 700;
}

.team-member h3 {
  color: var(--primary);
  margin-bottom: 4px;
}

.team-member .role {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.team-member p {
  color: var(--text-light);
  font-size: 0.9375rem;
}

/* === Utilities === */
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }

/* === Impressum === */
.impressum-content {
  max-width: 800px;
  margin: 0 auto;
}

.impressum-content h2 {
  color: var(--primary);
  margin-top: 32px;
  margin-bottom: 12px;
}

.impressum-content p {
  color: var(--text-light);
}

/* === Back to Top === */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.2s;
  box-shadow: 0 4px 12px rgba(58,110,165,0.3);
  z-index: 50;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* Contact hint */
.contact-hint {
  display: inline-block;
  font-size: 0.8em;
  color: var(--secondary);
  margin-left: 4px;
  font-weight: 500;
}

/* WhatsApp Button */
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 12px;
}

.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37,211,102,0.4);
  color: white;
}

/* Hero Logo */
.hero-logo {
  width: 120px;
  height: auto;
  margin: 0 auto 24px;
  display: block;
}

@media (min-width: 768px) {
  .hero-logo {
    width: 160px;
  }
}

/* Logo in header */
.logo img {
  height: 48px;
  width: auto;
  display: block;
}

/* Team Photo */
.team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.team-avatar img.team-photo {
  width: 80px;
  height: 80px;
}
