/* ================================================================
   hermann krause kunsthandel gmbh – Stylesheet
   Umsetzung des Screendesigns (_HKK-Screendesign_Desktop.pdf)
   ================================================================ */

:root {
  --cyan:        #00aeef;   /* Akzentfarbe aus dem Screendesign */
  --schwarz:     #1a1a1a;
  --text:        #3c3c3c;
  --grau:        #8a8a8a;
  --linie:       #e4e4e4;
  --weiss:       #ffffff;

  --schrift:     "Helvetica Neue", Helvetica, Arial, sans-serif;
  --schrift-serif: Georgia, "Times New Roman", serif;

  --breite:      900px;
  --rand:        24px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--schrift);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--weiss);
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--cyan); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.cyan { color: var(--cyan); }

h1, h2 { font-weight: 400; color: var(--schwarz); }

/* ----------------------------------------------------------------
   Kopfbereich
   ---------------------------------------------------------------- */
.site-header {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 26px var(--rand) 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.logo { line-height: 1.25; }
.logo-zeile1,
.logo-zeile2 { display: block; font-size: 17px; font-weight: 700; }
.logo-zeile1 { color: var(--schwarz); }
.logo-zeile2 { color: var(--cyan); }
.logo:hover .logo-zeile1 { color: var(--schwarz); }

.header-rechts {
  display: flex;
  align-items: center;
  gap: 18px;
  padding-top: 4px;
}

.hauptnav { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.hauptnav a { color: var(--text); }
.hauptnav a:hover,
.hauptnav a.aktiv { color: var(--cyan); }
.nav-slash { color: var(--cyan); }

.suche-knopf,
.menue-knopf {
  background: none;
  border: 0;
  padding: 4px;
  cursor: pointer;
  color: var(--schwarz);
}
.suche-knopf:hover { color: var(--cyan); }

.menue-knopf { display: inline-flex; flex-direction: column; gap: 5px; }
.menue-knopf span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--schwarz);
}

.sprache {
  font-size: 13px;
  font-weight: 700;
  color: var(--grau);
  letter-spacing: .04em;
}
.sprache:hover { color: var(--cyan); }

/* Suchleiste (klappt unter dem Kopf aus) */
.suche-leiste {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--rand) 14px;
  display: flex;
  gap: 8px;
}
.suche-leiste input[type="search"],
.suche-formular input[type="search"] {
  flex: 1;
  border: 1px solid var(--linie);
  padding: 9px 12px;
  font: inherit;
}
.suche-leiste button,
.suche-formular button,
.kontakt-formular button {
  border: 1px solid var(--schwarz);
  background: var(--schwarz);
  color: var(--weiss);
  padding: 9px 18px;
  font: inherit;
  cursor: pointer;
}
.suche-leiste button:hover,
.suche-formular button:hover,
.kontakt-formular button:hover { background: var(--cyan); border-color: var(--cyan); }

/* ----------------------------------------------------------------
   Inhalt
   ---------------------------------------------------------------- */
.inhalt {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 16px var(--rand) 56px;
  min-height: 45vh;
}

.intro { margin: 4px 0 26px; }
.intro p { margin: 0 0 12px; }
.intro p:last-child { margin-bottom: 0; }
.intro-willkommen { font-weight: 600; }

/* Startseite: Hero */
.hero {
  position: relative;
  display: block;
  margin-bottom: 12px;
}
.hero img { width: 100%; }
.hero-overlay {
  position: absolute;
  left: 0; right: 0;
  bottom: 8%;
  text-align: center;
  color: var(--weiss);
  text-shadow: 0 1px 10px rgba(0,0,0,.45);
}
.hero-name {
  display: block;
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.05;
}
.hero-untertitel { display: block; font-size: clamp(14px, 2.4vw, 20px); }

/* Startseite: Kachelreihe */
.kachel-reihe {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.kachel { position: relative; display: block; }
.kachel img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.kachel-overlay {
  position: absolute;
  inset: auto 0 12%;
  text-align: center;
  color: var(--weiss);
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.kachel-name { display: block; font-size: 17px; }
.kachel-untertitel { display: block; font-size: 11px; }

/* Künstlerliste */
.artists-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}
.kuenstler-liste {
  list-style: none;
  margin: 0;
  padding: 0;
}
.kuenstler-liste li { margin: 0 0 6px; }
.kuenstler-liste a { color: var(--text); }
.kuenstler-liste a:hover { color: var(--cyan); }

.werk-raster {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.werk-kachel img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.werk-kachel:hover img { opacity: .85; }
.werk-kachel-text { display: block; font-size: 12px; margin-top: 6px; color: var(--grau); }

/* Seitenkopf mit Blätter-Navigation (< > X) */
.seiten-kopf {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 6px 0 22px;
}
.kleinname {
  margin: 0;
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: .01em;
}
.blaetter-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 28px;
  line-height: 1;
}
.blaetter-nav a { color: var(--schwarz); }
.blaetter-nav a:hover { color: var(--cyan); }
.blaetter-nav .schliessen { color: var(--cyan); }
.blaetter-nav .inaktiv { color: var(--linie); }

/* Künstlerseite: Galerie + Biografie */
.kuenstler-galerie {
  column-count: 3;
  column-gap: 16px;
  margin-bottom: 34px;
}
.galerie-bild {
  display: block;
  break-inside: avoid;
  margin-bottom: 16px;
}
.galerie-bild:hover img { opacity: .85; }

.biografie h2 { font-size: 22px; margin: 0 0 14px; }
.biografie p { margin: 0 0 12px; max-width: 560px; }

/* Werkdetail */
.werk-layout {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: 32px;
  align-items: start;
}
.werk-bild img { margin-bottom: 12px; }
.werk-titel {
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 400;
  color: var(--cyan);
}
.datenliste { margin: 0 0 20px; }
.datenzeile { display: flex; gap: 8px; margin-bottom: 3px; }
.datenzeile dt { min-width: 110px; margin: 0; }
.datenzeile dd { margin: 0; }
.werk-beschreibung { margin: 0 0 20px; font-style: italic; }

.anfrage {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.anfrage-text { color: var(--cyan); }
.anfrage:hover .anfrage-text { text-decoration: underline; }

/* Suche */
.suche-formular { display: flex; gap: 8px; max-width: 480px; margin: 0 0 22px; }
.suche-hinweis { color: var(--grau); }
.suchergebnis { margin-top: 10px; }

/* Kontakt */
.kontakt-formular {
  display: grid;
  gap: 14px;
  max-width: 480px;
  margin-top: 18px;
}
.kontakt-formular label { display: grid; gap: 5px; }
.kontakt-formular input,
.kontakt-formular textarea {
  border: 1px solid var(--linie);
  padding: 9px 12px;
  font: inherit;
}
.kontakt-formular button { justify-self: start; }

.meldung { padding: 10px 14px; max-width: 480px; }
.meldung.erfolg  { background: #eef8f0; border: 1px solid #bfe3c8; }
.meldung.fehler  { background: #fdf0f0; border: 1px solid #efc4c4; }
.meldung.hinweis { background: #f4f9fd; border: 1px solid #cfe7f5; }

.platzhalter-hinweis { color: var(--grau); }

/* ----------------------------------------------------------------
   Fußzeile
   ---------------------------------------------------------------- */
.site-footer {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 8px var(--rand) 40px;
}
.footer-spalten {
  display: flex;
  justify-content: space-between;
  align-items: flex-end; /* Rechtslinks schliessen unten mit den Icons ab */
  gap: 16px;
}
.footer-adresse { font-style: normal; }
.footer-links { display: flex; gap: 10px; font-size: 15px; }
.footer-links a { color: var(--text); }
.footer-links a:hover { color: var(--cyan); }
.footer-telefon { margin: 20px 0 22px; }
.footer-links { padding-bottom: 2px; } /* Textunterkante buendig mit Icon-Unterkante */

.footer-kreise { display: flex; gap: 14px; }
.kreis {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--schwarz);
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.kreis:hover { background: var(--cyan); color: var(--weiss); }
.kreis.klein { width: 38px; height: 38px; }
.kreis-text { font-size: 14px; font-weight: 700; color: var(--weiss); }
.kreis-text .cyan { color: var(--cyan); }
.kreis:hover .kreis-text,
.kreis:hover .kreis-text .cyan { color: var(--weiss); }

/* ----------------------------------------------------------------
   Responsiv
   ---------------------------------------------------------------- */
@media (max-width: 760px) {
  .hauptnav { display: none; }
  .hauptnav.offen {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    position: absolute;
    right: var(--rand);
    top: 64px;
    background: var(--weiss);
    border: 1px solid var(--linie);
    padding: 14px 18px;
    z-index: 10;
  }
  .hauptnav.offen .nav-slash { display: none; }
  .site-header { position: relative; }

  .kachel-reihe,
  .werk-raster { grid-template-columns: repeat(2, 1fr); }
  .artists-layout { grid-template-columns: 1fr; gap: 24px; }
  .kuenstler-galerie { column-count: 2; }
  .werk-layout { grid-template-columns: 1fr; }
  .footer-spalten { flex-direction: column; align-items: flex-start; }
  .footer-links { padding-bottom: 0; margin-top: 18px; }
}

@media (min-width: 761px) {
  .hauptnav { display: flex !important; }
}

@media (prefers-reduced-motion: no-preference) {
  a, button, .kreis, .werk-kachel img, .galerie-bild img {
    transition: color .15s ease, background-color .15s ease, opacity .15s ease;
  }
}

/* Langtext auf der Werkseite */
.werk-langtext { max-width: 480px; margin: 0 0 20px; }
.werk-langtext p { margin: 0 0 10px; }

/* Links in Langtext, Biografie und Rechtstexten: cyan, lange
   URLs brechen um, statt aus der Spalte zu laufen */
.werk-langtext a,
.biografie a,
.fliesstext a { color: var(--cyan); overflow-wrap: anywhere; }
.werk-langtext a:hover,
.biografie a:hover,
.fliesstext a:hover { text-decoration: underline; }

/* Nur fuer Screenreader/Suchmaschinen sichtbare Elemente */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Fliesstext-Seiten (about, spaeter imprint etc.) */
.fliesstext { max-width: 640px; }
.fliesstext p { margin: 0 0 14px; }
.fliesstext h2 { font-size: 19px; margin: 26px 0 10px; }

/* Lightbox: Werkbild in Originalgroesse */
.lightbox-link img { cursor: zoom-in; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12, 12, 12, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}
.lightbox img {
  max-width: 95vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .5);
}
.lightbox-schliessen {
  position: absolute;
  top: 14px;
  right: 22px;
  background: none;
  border: 0;
  color: var(--cyan);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}
.lightbox-schliessen:hover { color: #fff; }
.lightbox-laden {
  position: absolute;
  color: #bbb;
  font-size: 14px;
}
