/* ================================================
   Dienstleistungen rund ums Haus – Nik Awe
   style.css – Handwerk-Rustikal
   ================================================ */

/* --- Lokale Fonts (DSGVO-konform) --- */
@font-face {
  font-family: 'Oswald';
  src: url('../fonts/oswald-semibold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Oswald';
  src: url('../fonts/oswald-bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/sourcesans3-regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Source Sans 3';
  src: url('../fonts/sourcesans3-semibold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #5C3A1E;
  --primary-light: #7A5230;
  --accent: #C45A2D;
  --accent-hover: #A8481F;
  --dark: #2C2C2C;
  --light: #F5F0E8;
  --white: #FFFFFF;
  --text: #3A3A3A;
  --text-light: #6B6B6B;
  --border: #D9D0C4;

  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;

  --max-width: 1200px;
  --header-height: 80px;
  --radius: 6px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
}

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

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.3;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
h1 { font-size: 2.4rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.3rem; }

ul { list-style: none; }

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark);
  height: var(--header-height);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo span { color: var(--accent); }

/* --- Navigation --- */
.nav-list {
  display: flex;
  gap: 28px;
}

.nav-list a {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 0;
  position: relative;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-list a:hover::after,
.nav-list a.active::after {
  width: 100%;
}

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

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

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

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

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  background-color: var(--dark);
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(44, 44, 44, 0.75) 0%, rgba(92, 58, 30, 0.6) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 60px 0;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 2.8rem;
  text-transform: uppercase;
}

.hero .subtitle {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 28px;
  opacity: 0.95;
  line-height: 1.8;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-heading);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

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

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

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

/* --- Sections --- */
.section { padding: 70px 0; }
.section-alt { background: var(--light); }
.section-dark {
  background: var(--dark);
  color: var(--white);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  margin-bottom: 12px;
}
.section-title p {
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}
.section-dark .section-title h2 { color: var(--white); }
.section-dark .section-title p { color: rgba(255, 255, 255, 0.7); }

/* Akzentlinie unter Überschriften */
.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 12px auto 0;
}

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-bottom: 3px solid transparent;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-bottom-color: var(--accent);
}

.service-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  color: var(--primary);
}
.service-card .icon svg { width: 100%; height: 100%; }

.service-card h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}
.service-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Highlight-Card für Steckenpferd */
.service-card.highlight {
  border-bottom-color: var(--accent);
  position: relative;
}
.service-card.highlight::before {
  content: 'Steckenpferd';
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 3px;
}

/* --- Über mich --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about-text h2 {
  margin-bottom: 16px;
}

.about-text h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin-top: 12px;
}

.about-text p {
  margin-bottom: 16px;
}

.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.about-fact {
  display: flex;
  align-items: center;
  gap: 10px;
}

.about-fact svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--accent);
}

.about-fact span {
  font-weight: 600;
  font-size: 0.95rem;
}

/* --- Referenzen / Projekte --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.project-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--white);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.project-card .project-image {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  background: var(--border);
}

.project-card .project-info {
  padding: 20px;
}

.project-card h3 {
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.project-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.project-card .project-tag {
  display: inline-block;
  background: var(--light);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 3px;
  margin-top: 10px;
}

/* --- Kontakt --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info h3 { margin-bottom: 20px; }

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

.contact-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--accent);
}

.contact-item a { color: var(--text); }
.contact-item a:hover { color: var(--accent); }

.contact-item strong {
  display: block;
  margin-bottom: 2px;
  color: var(--dark);
}

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-container iframe {
  width: 100%;
  height: 350px;
  border: none;
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--primary);
  color: var(--white);
  padding: 50px 0;
  text-align: center;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.footer p,
.footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}
.footer a:hover { color: var(--white); }

.footer-links li { margin-bottom: 8px; }

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: background var(--transition);
}
.footer-social a:hover { background: var(--accent); }

.footer-social svg {
  width: 18px;
  height: 18px;
  fill: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
}

/* --- Cookie Banner --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--dark);
  color: var(--white);
  padding: 16px 20px;
  z-index: 200;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  display: none;
}
.cookie-banner.show { display: block; }

.cookie-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cookie-content p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}
.cookie-content a { color: var(--accent); }

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-buttons .btn {
  padding: 10px 24px;
  font-size: 0.9rem;
}

/* --- Legal pages --- */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}
.legal-content h2 {
  margin-top: 32px;
  margin-bottom: 12px;
}
.legal-content h3 {
  margin-top: 24px;
  margin-bottom: 8px;
}
.legal-content p { margin-bottom: 12px; }
.legal-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal-content ul li { margin-bottom: 6px; }

/* --- Page Header (Unterseiten) --- */
.page-header {
  background: var(--primary);
  color: var(--white);
  padding: 50px 0;
  text-align: center;
}
.page-header h1 {
  color: var(--white);
  margin-bottom: 8px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero h1 { font-size: 2.2rem; }
}

@media (max-width: 780px) {
  .nav-toggle { display: flex; }

  .nav-list {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 280px;
    height: calc(100vh - var(--header-height));
    background: var(--dark);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    box-shadow: var(--shadow-lg);
    transition: right var(--transition);
  }
  .nav-list.open { right: 0; }

  .nav-list a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero { min-height: 380px; }
  .hero h1 { font-size: 1.8rem; }

  .about-grid { grid-template-columns: 1fr; }
  .about-image { max-width: 400px; margin: 0 auto; }

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

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

  .cookie-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.6rem; }
  h2 { font-size: 1.3rem; }
  .hero h1 { font-size: 1.5rem; }
  .section { padding: 50px 0; }
  .hero { min-height: 300px; }
  .about-facts { grid-template-columns: 1fr; }
}
