/* ecom-house.com – Farbfelder-Layout */

/* Schriften lokal (keine Verbindung zu Google), Pfade relativ zu dieser Datei */
@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;
}
@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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-800-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;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-800-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --page-bg: #F4F4F4;
  --ink: #141414;
  --font-body: "Inter", system-ui, sans-serif;
  --font-display: "Bricolage Grotesque", "Inter", sans-serif;
}

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

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

/* nur für Screenreader sichtbar */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  max-width: 1312px;
  margin: 0 auto;
  padding: 0 5%;
  box-sizing: content-box;
}

/* Kopfzeile */
.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px 28px;
  padding: 24px 0;
  font-size: 16px;
  font-weight: 600;
}
.site-header > nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 28px;
}
.site-header > nav a,
.site-logo {
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.site-header > nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Logo links: Die viewBox hat oben und unten Luft, bei 56 px Bildhöhe ist das Zeichen ca. 39 px hoch */
.site-header .site-logo { margin-right: auto; }
.site-logo img { width: 56px; height: 56px; }

/* Sprachauswahl als Aufklappmenü (details/summary, ohne JavaScript) */
.lang-menu { position: relative; flex: none; }
.lang-menu summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  padding: 0 14px 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  user-select: none;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary:hover,
.lang-menu[open] summary { background: #FFFFFF; }
.lang-menu summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.lang-menu svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lang-menu summary svg { transition: transform 0.15s ease; }
.lang-menu[open] summary svg { transform: rotate(180deg); }
.lang-menu ul {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10;
  min-width: 180px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #FFFFFF;
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}
.lang-menu li a,
.lang-menu li span {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.lang-menu li a:hover { background: var(--page-bg); text-decoration: underline; text-underline-offset: 4px; }
.lang-menu li a:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.lang-menu li span { font-weight: 700; }

/* Sprachhinweis auf / (eingefügt von lang-hint.js, ganz oben über der Kopfzeile) */
.lang-hint {
  background: #141414;
  color: #FFFFFF;
  font-size: 15px;
  line-height: 1.4;
}
.lang-hint-inner {
  max-width: 1312px;
  margin: 0 auto;
  padding: 6px 5%;
  box-sizing: content-box;
  display: flex;
  align-items: center;
  gap: 16px;
}
.lang-hint-content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.lang-hint p { margin: 0; }
.lang-hint-link {
  min-height: 36px;
  padding: 6px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  background: #FFFFFF;
  color: #141414;
  font-weight: 700;
  text-decoration: none;
}
.lang-hint-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.lang-hint-link:focus-visible,
.lang-hint-close:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.lang-hint-close {
  flex: none;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #FFFFFF;
  font: inherit;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.lang-hint-close:hover { background: rgba(255, 255, 255, 0.15); }

/* Einstieg */
.hero {
  padding: 40px 0 72px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(60px, 14.5vw, 210px);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.045em;
}
.hero p {
  margin: 0;
  max-width: 620px;
  font-size: 21px;
  line-height: 1.45;
}

/* Kacheln */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr));
  gap: 28px;
}
.tile {
  min-width: 0;
  border-radius: 28px;
  padding: 40px;
  background: var(--bg);
  color: var(--fg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.tile-tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* Hinweis bei Zielseiten, die es nur in einer Sprache gibt */
.tile-lang {
  margin-top: -10px;
  font-size: 13px;
  font-weight: 600;
}
.tile h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 4.2vw, 60px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.tile p {
  margin: 0;
  max-width: 470px;
  font-size: 17px;
  line-height: 1.5;
}

/* Link-Button: Schrift = Kachelfarbe, Fläche = Schriftfarbe der Kachel */
.tile-button {
  align-self: flex-start;
  max-width: 100%;
  min-height: 48px;
  padding: 8px 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  background: var(--fg);
  color: var(--bg);
  overflow-wrap: anywhere;
  transition: transform 0.15s ease;
}
.tile-button:hover { transform: translateY(-2px); }
.tile-button:focus-visible { outline: 3px solid var(--fg); outline-offset: 3px; }
.tile-button svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile-shot {
  margin-top: auto;
  display: block;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}
.tile-shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top;
}

/* Fußzeile */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 48px 0 40px;
  margin-top: 72px;
  border-top: 3px solid var(--ink);
  font-size: 15px;
  font-weight: 600;
}
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer-links a { white-space: nowrap; }

/* Textseiten (Impressum, Datenschutz) */
.legal {
  max-width: 720px;
  padding: 40px 0 0;
  font-size: 17px;
  line-height: 1.6;
}
.legal h1 {
  margin: 0 0 32px;
  font-family: var(--font-display);
  font-size: clamp(34px, 7vw, 64px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  hyphens: auto;
  overflow-wrap: break-word;
}
.legal h2 {
  margin: 48px 0 12px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
}
.legal h3 {
  margin: 28px 0 8px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 700;
}
.legal p,
.legal ul,
.legal address { margin: 0 0 16px; }
.legal address { font-style: normal; }
.legal ul { padding-left: 1.3em; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--ink); overflow-wrap: anywhere; }
.legal .note {
  margin-bottom: 32px;
  padding-left: 16px;
  border-left: 4px solid var(--ink);
}

/* Kopfzeile, wenn nicht alles in eine Zeile passt: Logo links, Sprachmenü rechts,
   die Hauptnavigation dazwischen bricht bei Bedarf um */
@media (max-width: 960px) {
  .site-header { flex-wrap: nowrap; align-items: flex-start; }
  .site-header .site-logo { flex: none; }
  .site-header > nav { flex: 1 1 0; min-width: 0; }
}

@media (max-width: 560px) {
  .tile { padding: 28px; border-radius: 22px; }
  .site-header,
  .site-header > nav { gap: 0 16px; }
  .lang-menu summary { padding: 0 10px 0 12px; gap: 6px; }
  .lang-hint-inner { align-items: flex-start; padding-top: 8px; padding-bottom: 10px; }
  .lang-hint-content { padding-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .tile-button,
  .lang-menu summary svg { transition: none; }
}
