/*
Theme Name: Der Fliesenleger Profi Mallorca
Theme URI: https://fliesenleger-mallorca.eu/
Author: Der Fliesenleger Profi Mallorca
Description: Schlankes WordPress-Theme für Der Fliesenleger Profi Mallorca mit Startseite, Kontaktbereich und Impressum.
Version: 1.0.0
Text Domain: der-fliesenleger-profi-mallorca
*/

:root {
  --ink: #25221d;
  --muted: #716c62;
  --paper: #f6f0e7;
  --surface: #ffffff;
  --soft: #efe4d4;
  --orange: #d86f2a;
  --orange-dark: #b6531d;
  --charcoal: #31302b;
  --stone: #d9c6a9;
  --sand: #fbf6ee;
  --sea: #1b8992;
  --olive: #6f7c45;
  --line: #e2d3bd;
  --shadow: 0 18px 45px rgba(83, 60, 36, 0.15);
  --font-body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(216, 111, 42, 0.09), transparent 28%),
    linear-gradient(180deg, #fbf7ef 0%, var(--paper) 48%, #f2e6d6 100%);
  letter-spacing: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
  padding: 10px clamp(20px, 5vw, 72px);
  background: rgba(255, 252, 246, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(29, 35, 39, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: clamp(118px, 14vw, 176px);
  height: auto;
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 36px);
  color: var(--charcoal);
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

nav a {
  padding: 30px 0;
  border-top: 3px solid transparent;
}

nav a:hover {
  color: var(--sea);
  border-top-color: var(--orange);
}

.hero {
  padding: clamp(34px, 6vw, 66px) clamp(16px, 5vw, 72px) 54px;
  background:
    linear-gradient(135deg, rgba(216, 111, 42, 0.14) 0 23%, transparent 23% 100%),
    radial-gradient(circle at 78% 12%, rgba(27, 137, 146, 0.16), transparent 28%),
    linear-gradient(180deg, #fffaf2 0%, #f3e6d4 100%);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: 28px;
  width: min(1220px, 100%);
  min-height: 520px;
  margin: 0 auto;
  align-items: stretch;
}

.hero-card {
  align-self: start;
  margin-top: 36px;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 242, 0.96)),
    repeating-linear-gradient(45deg, rgba(216, 111, 42, 0.05) 0 1px, transparent 1px 14px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.tag {
  display: inline-flex;
  margin: 0 0 18px;
  padding: 9px 14px;
  color: #fff;
  background: var(--orange);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.hero-card h1 {
  margin: 0 0 18px;
  color: var(--charcoal);
  font-family: var(--font-heading);
  font-size: clamp(42px, 5vw, 66px);
  font-weight: 700;
  line-height: 0.92;
  text-transform: uppercase;
}

.hero-card p {
  margin-bottom: 24px;
  font-size: 16px;
  font-weight: 500;
}

.hero-stage {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255, 250, 242, 0.9), rgba(255, 250, 242, 0.54)),
    repeating-linear-gradient(90deg, rgba(126, 96, 59, 0.07) 0 1px, transparent 1px 96px);
  border: 1px solid var(--line);
}

.hero-image {
  position: absolute;
  inset: 0;
  clip-path: polygon(31% 0, 100% 0, 100% 100%, 18% 100%);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 250, 242, 0.72), rgba(255, 250, 242, 0.12)),
    linear-gradient(0deg, rgba(27, 137, 146, 0.08), transparent 46%);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-title {
  position: absolute;
  left: clamp(28px, 7vw, 92px);
  top: 50%;
  transform: translateY(-50%);
  color: var(--charcoal);
  text-transform: uppercase;
}

.hero-title span {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
}

.hero-title strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(62px, 8vw, 108px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: 0.015em;
}

.hero-note {
  position: absolute;
  right: 28px;
  top: 28px;
  width: 178px;
  padding: 16px;
  color: #fff;
  background: #2f3328;
  border-bottom: 6px solid var(--orange);
}

.hero-note strong,
.hero-note span {
  display: block;
}

.hero-note strong {
  font-family: var(--font-heading);
  font-weight: 700;
}

.hero-note span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

.zigzag {
  position: absolute;
  right: clamp(84px, 18vw, 260px);
  top: 214px;
  width: 152px;
  height: 74px;
  background:
    linear-gradient(135deg, transparent 0 40%, var(--sea) 40% 48%, transparent 48% 100%) 0 0 / 38px 38px,
    linear-gradient(45deg, transparent 0 40%, var(--sea) 40% 48%, transparent 48% 100%) 19px 36px / 38px 38px;
}

.island-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 22px;
}

.island-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 10px;
  color: var(--charcoal);
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid transparent;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #e28b38);
}

.button.primary:hover {
  background: var(--orange-dark);
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 74px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--sea);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h2,
h3,
p {
  margin-top: 0;
}

h2 {
  margin-bottom: 18px;
  color: var(--charcoal);
  font-family: var(--font-heading);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 700;
  line-height: 0.96;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 10px;
  color: var(--charcoal);
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
}

p {
  color: var(--muted);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.66;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
  gap: 54px;
  align-items: start;
}

.intro p:last-child {
  margin-top: 42px;
  font-size: 18px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.craft {
  padding-top: 8px;
}

.craft-panel {
  position: relative;
  padding: clamp(30px, 5vw, 56px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(255, 248, 238, 0.97)),
    repeating-linear-gradient(-45deg, rgba(216, 111, 42, 0.07) 0 1px, transparent 1px 18px);
  border: 1px solid var(--line);
  border-left: 10px solid var(--orange);
  box-shadow: var(--shadow);
}

.craft-panel::after {
  content: "";
  position: absolute;
  right: clamp(20px, 4vw, 48px);
  top: clamp(20px, 4vw, 48px);
  width: 86px;
  height: 86px;
  border-top: 8px solid var(--sea);
  border-right: 8px solid var(--sea);
  opacity: 0.32;
}

.craft-panel h2,
.craft-panel p {
  max-width: 880px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  min-height: 235px;
  overflow: hidden;
  padding: 0 0 26px;
  background:
    linear-gradient(180deg, #fff, var(--sand));
}

.service-card img {
  width: 100%;
  height: 168px;
  object-fit: cover;
  border-bottom: 4px solid var(--sea);
}

.service-card span {
  display: inline-grid;
  width: 42px;
  height: 42px;
  margin: 22px 26px 26px;
  place-items: center;
  color: #fff;
  background: var(--sea);
  font-size: 13px;
  font-family: var(--font-heading);
  font-weight: 700;
}

.service-card h3,
.service-card p {
  margin-right: 26px;
  margin-left: 26px;
}

.seo-section {
  padding-top: 28px;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.seo-grid article {
  padding: 26px;
  background:
    linear-gradient(180deg, #fff, #fff8ee);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(23, 31, 38, 0.07);
}

.location-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.location-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 13px;
  color: var(--charcoal);
  background: #fff8ee;
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 22px;
  align-items: stretch;
}

.split-copy {
  padding: clamp(30px, 5vw, 54px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 236, 0.96));
  border-left: 8px solid var(--sea);
  box-shadow: var(--shadow);
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 22px 0 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  padding: 13px 14px;
  color: var(--charcoal);
  background: #fff8ee;
  border: 1px solid var(--line);
  font-weight: 700;
}

.stat-panel {
  display: grid;
  align-content: end;
  min-height: 360px;
  padding: 30px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(27, 137, 146, 0.94), rgba(216, 111, 42, 0.82)),
    repeating-linear-gradient(-45deg, transparent 0 16px, rgba(255, 255, 255, 0.2) 16px 18px);
  box-shadow: var(--shadow);
}

.stat-panel strong {
  display: block;
  font-size: clamp(100px, 13vw, 172px);
  line-height: 0.78;
}

.stat-panel span {
  max-width: 270px;
  margin-top: 22px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.32;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  overflow: hidden;
  background: #fffaf2;
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(23, 31, 38, 0.08);
}

.project-card.wide {
  grid-column: auto;
  display: block;
}

.project-card img,
.project-card.wide img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.project-card div {
  min-height: 150px;
  padding: 22px;
  border-top: 4px solid var(--sea);
}

.faq {
  padding-top: 10px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  background: #fffaf2;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(23, 31, 38, 0.06);
}

.faq-list summary {
  cursor: pointer;
  padding: 20px 22px;
  color: var(--charcoal);
  font-family: var(--font-heading);
  font-weight: 650;
}

.faq-list p {
  max-width: 850px;
  margin: 0;
  padding: 0 22px 22px;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(24px, 4vw, 54px);
  padding: clamp(30px, 5vw, 52px);
  margin-bottom: 72px;
  color: #fff;
  background:
    linear-gradient(135deg, #30312a, #3d3328);
  border-right: 12px solid var(--sea);
  box-shadow: var(--shadow);
}

.contact-copy {
  min-width: 0;
  max-width: 690px;
}

.contact h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 38px);
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
}

.contact p {
  color: rgba(255, 255, 255, 0.76);
}

.request-form {
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  color: var(--charcoal);
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 14px;
}

.request-form label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  letter-spacing: 0.02em;
}

.request-form input,
.request-form select,
.request-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-left: 4px solid var(--sea);
  border-radius: 0;
  padding: 13px 12px;
  color: var(--ink);
  background: #fff8ee;
  font: inherit;
  font-size: 15px;
  outline: none;
}

.request-form textarea {
  min-height: 128px;
  resize: vertical;
}

.request-form input:focus,
.request-form select:focus,
.request-form textarea:focus {
  border-color: var(--sea);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(27, 137, 146, 0.15);
}

.form-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding-top: 6px;
}

.form-actions p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.form-actions .button {
  border: 0;
  cursor: pointer;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: #24272b;
}

.footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-links a,
.site-footer a {
  color: #fff;
  font-weight: 700;
}

.legal-hero {
  padding-bottom: 26px;
}

.legal-hero h1 {
  margin: 0;
  color: var(--charcoal);
  font-family: var(--font-heading);
  font-size: clamp(54px, 8vw, 96px);
  font-weight: 700;
  line-height: 0.9;
  text-transform: uppercase;
}

.legal-section {
  padding-top: 0;
}

.legal-card {
  max-width: 760px;
  padding: clamp(30px, 5vw, 56px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(255, 248, 238, 0.97));
  border: 1px solid var(--line);
  border-left: 10px solid var(--sea);
  box-shadow: var(--shadow);
}

.legal-card address {
  margin: 0 0 28px;
  color: var(--muted);
  font-style: normal;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.65;
}

.legal-card a {
  color: var(--sea);
  font-weight: 700;
}

@media (max-width: 1120px) {
  .hero-shell,
  .intro,
  .split,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero-card {
    margin-top: 0;
  }

  .hero-stage {
    min-height: 500px;
  }

  .service-grid,
  .project-grid,
  .seo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    align-items: center;
    padding: 14px 18px;
  }

  .brand-logo {
    width: 132px;
  }

  nav {
    display: none;
  }

  .hero {
    padding: 18px 14px 42px;
  }

  .hero-stage {
    min-height: 440px;
  }

  .hero-title {
    left: 24px;
  }

  .hero-title strong {
    font-size: 56px;
  }

  .hero-note {
    right: 16px;
    top: 16px;
    width: 146px;
  }

  .zigzag {
    right: 36px;
    top: 250px;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 58px 0;
  }

  .intro p:last-child {
    margin-top: 0;
  }

  .service-grid,
  .project-grid,
  .seo-grid,
  .check-list,
  .form-row {
    grid-template-columns: 1fr;
  }

  .form-actions {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
