/* =====================================================
   KOR Malerbetrieb - Stylesheet
   Farbschema: Weiß, Beige, Orange
   ===================================================== */

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

:root {
  /* Primärfarben */
  --primary-orange: #f4a460; /* Orange */
  --accent-beige-dark: #e8e3dd; /* Warmes Steingrau */
  
  /* Textfarben */
  --text-color: #333333;
  --light-text: #222222;
  
  /* Utility */
  --border-color: #e0d5c8;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background: linear-gradient(145deg, #f0ebe5 0%, #e2dcd6 100%);
  background-attachment: fixed;
}

/* =====================================================
   HEADER & NAVIGATION
   ===================================================== */

header {
  background: rgba(240, 235, 229, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
}

.logo {
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
}

.logo img {
  display: block;
  height: 130px;
  width: auto;
}

nav {
  display: none;
}

nav.active {
  display: flex;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  flex-direction: column;
  background: rgba(240, 235, 229, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 3px solid #000000;
  box-shadow: var(--shadow);
  z-index: 99;
}

nav a {
  display: block;
  padding: 15px 20px;
  color: #000000;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: none;
  font-weight: 500;
  background: transparent;
}

nav a:hover,
nav a.active {
  background: transparent;
  color: #000000;
  padding-left: 20px;
  text-decoration: underline;
  text-decoration-color: #000000;
  text-underline-offset: 8px;
  text-decoration-thickness: 3px;
}

.hamburger {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--primary-orange);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* =====================================================
   MAIN CONTENT
   ===================================================== */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background: transparent;
}

section {
  margin-bottom: 40px;
}

h1 {
  font-size: 32px;
  color: var(--text-color);
  margin-bottom: 20px;
  border-bottom: 3px solid var(--primary-orange);
  padding-bottom: 10px;
}

h2 {
  font-size: 24px;
  color: #000000;
  margin-top: 30px;
  margin-bottom: 15px;
}

h3 {
  font-size: 18px;
  color: var(--text-color);
  margin-top: 15px;
  margin-bottom: 10px;
}

p {
  color: var(--light-text);
  margin-bottom: 15px;
  line-height: 1.8;
}

/* =====================================================
   HERO SECTION (Startseite)
   ===================================================== */

.hero {
  background-color: transparent;
  color: var(--text-color);
  padding: 60px 20px;
  text-align: center;
  border-radius: 10px;
  margin-bottom: 40px;
  border: 4px solid #000000;
}

.hero h1 {
  font-size: 42px;
  color: var(--text-color);
  border-bottom: 3px solid #000000;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  color: var(--text-color);
  margin-bottom: 20px;
}

.brush-highlight {
  position: relative;
  display: inline-block;
  z-index: 0;
}

.brush-stroke-svg {
  position: absolute;
  inset: -14px -18px;
  width: calc(100% + 36px);
  height: calc(100% + 28px);
  z-index: -1;
  pointer-events: none;
  transform: rotate(-1.5deg);
  overflow: visible;
  clip-path: inset(0 100% 0 0);
  animation: brush-paint 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

@keyframes brush-paint {
  to {
    clip-path: inset(0 0% 0 0);
  }
}

.brush-highlight::after {
  content: '';
  position: absolute;
  width: 44px;
  height: 110px;
  top: -82px;
  left: -22px;
  transform-origin: bottom center;
  transform: rotate(-18deg);
  pointer-events: none;
  z-index: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 72'%3E%3Crect x='7' y='0' width='6' height='42' rx='2' fill='%23c8934a'/%3E%3Cline x1='8' y1='10' x2='12' y2='10' stroke='%23a07030' stroke-width='0.7'/%3E%3Cline x1='8' y1='20' x2='12' y2='20' stroke='%23a07030' stroke-width='0.7'/%3E%3Cline x1='8' y1='30' x2='12' y2='30' stroke='%23a07030' stroke-width='0.7'/%3E%3Crect x='6' y='41' width='8' height='7' rx='1' fill='%23999'/%3E%3Cpath d='M 6,48 C 4,53 4,61 6,67 C 8,71 10,72 10,72 C 10,72 12,71 14,67 C 16,61 16,53 14,48 Z' fill='%23333'/%3E%3Cpath d='M 7,63 C 7,66 8.5,69 10,71 C 11.5,69 13,66 13,63 C 11.5,62 8.5,62 7,63 Z' fill='%23f4a460'/%3E%3C/svg%3E") no-repeat center / contain;
  animation: brush-move 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.6s both;
}

@keyframes brush-move {
  0%   { left: -20px; opacity: 1; }
  85%  { opacity: 1; }
  100% { left: calc(100% + 15px); opacity: 0; }
}

.cta-button {
  display: inline-block;
  background: linear-gradient(to right, var(--primary-orange) 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: right center;
  color: #000000;
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: background-position 0.4s ease, border-color 0.4s ease, transform 0.2s ease;
  cursor: pointer;
  border: 2px solid #000000;
}

.cta-button:hover {
  background-position: left center;
  border-color: var(--primary-orange);
  transform: translateY(-2px);
}

/* =====================================================
   CARDS & CONTENT BOXES
   ===================================================== */

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 30px 0;
}

.service-card {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-orange);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.service-card h3 {
  color: #000000;
  margin-bottom: 10px;
}

/* =====================================================
   IMAGES
   ===================================================== */

.image-container {
  margin: 30px 0;
  text-align: center;
}

.image-container img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.image-container img:hover {
  transform: scale(1.02);
}

.image-text {
  margin-top: 10px;
  font-style: italic;
  color: var(--light-text);
  font-size: 14px;
}

/* =====================================================
   FORMS
   ===================================================== */

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

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 5px;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(244, 164, 96, 0.1);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

button,
input[type="submit"] {
  background: linear-gradient(to right, var(--primary-orange) 50%, transparent 50%);
  background-size: 200% 100%;
  background-position: right center;
  color: #000000;
  padding: 12px 30px;
  border: 2px solid #000000;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-position 0.4s ease, border-color 0.4s ease, transform 0.2s ease;
}

button:hover,
input[type="submit"]:hover {
  background-position: left center;
  border-color: var(--primary-orange);
  transform: translateY(-2px);
}

/* =====================================================
   CONTACT INFO
   ===================================================== */

.contact-info {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 30px;
}

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

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-label {
  font-weight: bold;
  color: var(--primary-orange);
  min-width: 80px;
}

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

/* =====================================================
   FOOTER
   ===================================================== */

footer {
  background: linear-gradient(135deg, var(--primary-orange) 0%, var(--primary-orange) 100%);
  color: #ffffff;
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
}

footer p {
  color: #ffffff;
  margin: 0;
}

footer a {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
  opacity: 0.9;
}

/* =====================================================
   TABLET VIEW (768px and up)
   ===================================================== */

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }

  nav {
    display: flex !important;
    position: static;
    border-bottom: none;
    box-shadow: none;
    gap: 0;
  }

  nav a {
    padding: 20px 15px;
    border-bottom: none;
    color: #000000;
  }

  nav a:last-child {
    border-right: none;
  }

  nav a:hover,
  nav a.active {
    background: transparent;
    padding-left: 15px;
    color: #000000;
    text-decoration: underline;
    text-decoration-color: #000000;
    text-underline-offset: 8px;
    text-decoration-thickness: 3px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  .hero {
    padding: 80px 40px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-cards-container {
    grid-template-columns: repeat(1, 1fr);
  }

  main {
    padding: 40px 40px;
  }
}

/* =====================================================
   DESKTOP VIEW (1024px and up)
   ===================================================== */

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

  .why-cards-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .header-container {
    padding: 0 40px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .hero p {
    font-size: 20px;
  }

  main {
    padding: 60px 40px;
  }
}

/* =====================================================
   ANIMATIONS
   ===================================================== */

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.dynamic-text {
  font-size: 32px;
  font-weight: bold;
  color: var(--text-color);
  line-height: 1.4;
  margin: 30px 0;
  animation: slideInUp 1s ease-out;
}

.dynamic-text span {
  display: inline-block;
  opacity: 0;
  animation: slideInUp 0.8s ease-out forwards;
}

.dynamic-text span:not(:last-child) {
  margin-right: 0.28em;
}

.dynamic-text span:nth-child(1) { animation-delay: 0.1s; }
.dynamic-text span:nth-child(2) { animation-delay: 0.3s; }
.dynamic-text span:nth-child(3) { animation-delay: 0.5s; }
.dynamic-text span:nth-child(4) { animation-delay: 0.7s; }
.dynamic-text span:nth-child(5) { animation-delay: 0.9s; }

/* Section für "Warum wir?" */
.why-section {
  margin: 60px 0;
}

.why-cards-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin: 30px 0;
}

.why-card {
  background-color: transparent;
  padding: 30px;
  border-radius: 15px;
  border: 2px solid #000000;
  transition: all 0.3s ease;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.why-card h3 {
  color: #000000;
  font-size: 20px;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.why-card p {
  color: var(--light-text);
  line-height: 1.8;
}

/* =====================================================
   KONTAKT
   ===================================================== */

.kontakt-page {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
  align-items: center;
  min-height: 70vh;
}

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

.kontakt-page-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.kontakt-website {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--light-text);
  margin-bottom: 16px;
  display: block;
}

.kontakt-page-text h1 {
  font-size: 52px;
  line-height: 1.1;
  border-bottom: none;
  margin-bottom: 36px;
  padding-bottom: 0;
}

.kontakt-page-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kontakt-page-details a {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.kontakt-page-details a:hover {
  color: var(--primary-orange);
}

.kontakt-page-cta {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-orange);
  font-weight: 700;
  margin-top: 6px;
}

.kontakt-page-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--light-text);
}

.kontakt-page-divider {
  width: 40px;
  height: 1px;
  background-color: var(--primary-orange);
  margin: 6px 0;
}

.kontakt-page-image img {
  width: 100%;
  height: 100%;
  max-height: 600px;
  object-fit: cover;
  border-radius: 10px;
}

select {
  width: 100%;
  padding: 12px;
  border: 2px solid var(--border-color);
  border-radius: 5px;
  font-family: inherit;
  font-size: 14px;
  background: transparent;
  cursor: pointer;
}

/* =====================================================
   LEISTUNGEN SPLIT LAYOUT
   ===================================================== */

.leistungen-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 60px;
}

.leistungen-text h2 {
  margin-top: 0;
}

.leistungen-centered {
  text-align: center;
  margin-bottom: 60px;
}

.leistungen-centered p {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.leistungen-duo {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 30px;
}

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

.leistungen-duo img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.leistungen-duo-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.leistungen-duo-label {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--light-text);
}

.leistungen-vorher-nachher {
  margin-bottom: 60px;
}

.leistungen-vorher-nachher h2 {
  margin-bottom: 24px;
}

.leistungen-weitere {
  margin-bottom: 60px;
}

.leistungen-weitere h2 {
  margin-bottom: 24px;
}

.leistungen-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.leistungen-gallery img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

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

.leistungen-images {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.leistungen-images img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

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

.section-divider {
  width: 100%;
  height: 1px;
  background-color: #000000;
  margin: 50px 0 60px;
}

/* =====================================================
   REFERENZEN
   ===================================================== */

.ref-projects {
  list-style: none;
  margin-top: 25px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.ref-projects li {
  padding: 14px 18px;
  border-left: 3px solid var(--primary-orange);
}

.ref-projects li strong {
  display: block;
  font-size: 15px;
  color: var(--text-color);
  margin-bottom: 3px;
}

.ref-projects li span {
  font-size: 14px;
  color: var(--light-text);
}

.ref-cta {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #000000;
  text-align: center;
}

.ref-cta p {
  font-size: 15px;
  max-width: 640px;
  margin: 0 auto 24px;
}

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

/* =====================================================
   IMPRESSUM
   ===================================================== */

.impressum-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 40px;
}

.impressum-block {
  padding: 32px 0;
  border-bottom: 1px solid #000000;
}

.impressum-block:first-child {
  border-top: 1px solid #000000;
}

.impressum-block h2 {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--light-text);
  margin-top: 0;
  margin-bottom: 16px;
}

.impressum-block p {
  margin-bottom: 0;
  line-height: 1.8;
}

.impressum-block a {
  color: var(--text-color);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.impressum-block a:hover {
  color: var(--primary-orange);
}

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

  .impressum-block {
    padding: 36px 0;
  }

  .impressum-block--wide {
    grid-column: 1 / -1;
  }

  .impressum-block:nth-child(odd):not(.impressum-block--wide) ~ .impressum-block:nth-child(even):not(.impressum-block--wide) {
    border-left: none;
  }
}

/* =====================================================
   UTILITY CLASSES
   ===================================================== */

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

.mt-20 {
  margin-top: 20px;
}

.mt-40 {
  margin-top: 40px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-40 {
  margin-bottom: 40px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.full-width {
  width: 100%;
}
