@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
}

:root {
  /* Projektfarben – pro Kunde nur --color-accent anpassen */
  --color-accent:      #0D6B72;
  --color-accent-dark: #0A5259;
  --color-black:       #1A1A1A;
  --color-white:       #fff;
  --color-grey:        #6B7280;
  --color-light:       #F4F4F2;
  --color-border:      #E5E5E2;
  --color-background:  #FAFAF8;

  --color-text:        var(--color-black);
  --color-text-grey:   var(--color-grey);

  --font-family-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-family-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;

  --radius: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.06);
  --padding: 1.5rem;
}

html {
  font-family: var(--font-family-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
}
img {
  width: 100%;
  display: block;
}
body {
  padding: 0 var(--padding);
  max-width: 72rem;
  margin: 0 auto;
}
li {
  list-style: none;
}
a {
  color: currentColor;
  text-decoration: none;
}
button {
  font: inherit;
  background: none;
  border: 0;
  color: currentColor;
  cursor: pointer;
}
strong, b {
  font-weight: 600;
}
small {
  font-size: inherit;
  color: var(--color-text-grey);
}

.bg-light {
  background-color: var(--color-light);
}
.color-grey {
  color: var(--color-text-grey);
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  margin-bottom: 4rem;
  background: var(--color-background);
  border-bottom: 1px solid var(--color-border);
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -.02em;
  color: var(--color-accent);
}
.logo:hover {
  color: var(--color-accent-dark);
}
.logo-img {
  height: 2rem;
  width: auto;
  display: block;
}

.menu {
  display: flex;
  gap: .25rem;
}
.menu a {
  padding: .5rem .75rem;
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--color-grey);
  transition: color .15s, background .15s;
}
.menu a:hover {
  color: var(--color-text);
  background: var(--color-light);
}
.menu a[aria-current] {
  color: var(--color-accent);
  font-weight: 600;
  background: none;
}

.social {
  display: flex;
  padding: 0 .5rem;
}
.social a {
  padding: 1rem .5rem;
}

.section {
  padding: 3rem 0;
}

.grid {
  --columns: 12;
  --gutter: 3rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: 1fr;
}
.grid > .column {
  margin-bottom: var(--gutter);
}

.autogrid {
  --gutter: 3rem;
  --min: 10rem;
  display: grid;
  grid-gap: var(--gutter);
  grid-template-columns: repeat(auto-fit, minmax(var(--min), 1fr));
  grid-auto-flow: dense;
}

h1, h2, h3, h4, h5, h6 {
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.text {
  line-height: 1.5em;
}
.text a {
  text-decoration: underline;
}
.text :first-child {
  margin-top: 0;
}
.text :last-child {
  margin-bottom: 0;
}
.text p,
.text ul,
.text ol {
  margin-bottom: 1.5rem;
}
.text ul,
.text ol {
  margin-left: 1rem;
}
.text ul p,
.text ol p {
  margin-bottom: 0;
}
.text ul > li {
  list-style: disc;
}
.text ol > li {
  list-style: decimal;
}
.text ul ol,
.text ul ul,
.text ol ul,
.text ol ol {
  margin-bottom: 0;
}
.text h1,
.h1,
.intro {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.2;
  margin-bottom: 2rem;
}
.text h2,
.h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.text h3,
.h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: .75rem;
}
.text .codeblock {
  display: grid;
}
.text code {
  font-family: var(--font-family-mono);
  font-size: 1em;
  background: var(--color-light);
  padding: 0 .5rem;
  display: inline-block;
  color: var(--color-black);
}
.text pre {
  margin: 3rem 0;
  background: var(--color-black);
  color: var(--color-white);
  padding: 1.5rem;
  overflow-x: scroll;
  overflow-y: hidden;
  line-height: 1.5rem;
}
.text pre code {
  padding: 0;
  background: none;
  color: inherit;
}
.text hr {
  margin: 6rem 0;
}
.text dt {
  font-weight: 600;
}
.text blockquote {
  font-size: 1.25rem;
  line-height: 1.325em;
  border-left: 2px solid var(--color-black);
  padding-left: 1rem;
  margin: 3rem 0;
  max-width: 25rem;
}
.text blockquote footer {
  font-size: .875rem;
  font-style: italic;
}
.text figure {
  margin: 3rem 0;
}
.text figcaption {
  padding-top: .75rem;
  color: var(--color-text-grey);
}
.text figure ul {
  line-height: 0;
  display: grid;
  gap: 1.5rem;
  margin: 0;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}
.text figure ul li {
  list-style: none;
}

hr {
  border: 0;
  background: currentColor;
  height: 2px;
  width: 1.5rem;
  margin: 3rem auto;
}

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

.intro {
  max-width: 40rem;
}
.intro *:not(:last-child) {
  margin-bottom: 1em;
}

.cta {
  background: var(--color-black);
  color: var(--color-white);
  display: inline-flex;
  justify-content: center;
  padding: .75rem 1.5rem;
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-black);
}

.box {
  background: var(--color-light);
  padding: 1.5rem;
  border: 4px solid var(--color-white);
  outline: 2px solid var(--color-light);
}

.video,
.img {
  position: relative;
  display: block;
  --w: 1;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  background: var(--color-black);
}
.img img,
.video iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.img[data-contain] img {
  object-fit: contain;
}
.img-caption,
.video-caption {
  padding-top: .75rem;
  line-height: 1.5em;
}

.footer {
  padding: 9rem 0 6rem;
  line-height: 1.5em;
}
.footer:before {
  content: "";
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--color-black);
  margin-bottom: 1.5rem;
}

.footer h2 {
  font-weight: 600;
  margin-bottom: .75rem;
}
.footer ul,
.footer p {
  color: var(--color-text-grey);
}
.footer p {
  max-width: 15rem;
}
.footer a:hover {
  color: var(--color-text);
}


.map {
  --w: 2;
  --h: 1;
  padding-bottom: calc(100% / var(--w) * var(--h));
  position: relative;
  overflow: hidden;
  background: var(--color-black);
}
.map iframe {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.margin-s {
  margin-bottom: .75rem;
}
.margin-m {
  margin-bottom: 1.5rem;
}
.margin-l {
  margin-bottom: 3rem;
}
.margin-xl {
  margin-bottom: 4.5rem;
}
.margin-xxl {
  margin-bottom: 6rem;
}


@media screen and (min-width: 60rem) {
  body {
    --padding: 3rem;
  }

  .grid {
    grid-template-columns: repeat(12, 1fr);
  }
  .grid > .column {
    grid-column: span var(--columns);
  }

}

.pagination {
  display: flex;
  padding-top: 6rem;
}
.pagination > span {
  color: var(--color-text-grey);
}
.pagination > * {
  padding: .5rem;
  width: 3rem;
  text-align: center;
  border: 2px solid currentColor;
  margin-right: 1.5rem;
}
.pagination > a:hover {
  background: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.note-excerpt {
  line-height: 1.5em;
}
.note-excerpt header {
  margin-bottom: 1.5rem;
}
.note-excerpt figure {
  margin-bottom: .5rem;
}
.note-excerpt-title {
  font-weight: 600;
}
.note-excerpt-date {
  color: var(--color-text-grey);
}

/* Kontaktformular */
.kontakt-formular {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: .375rem;
}
.form-field label {
  font-weight: 600;
  font-size: .9rem;
}
.form-field input,
.form-field textarea {
  font: inherit;
  padding: .6rem .75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  width: 100%;
  box-sizing: border-box;
  background: var(--color-white);
  transition: border-color .15s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.form-field textarea {
  resize: vertical;
}
.form-field--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: .5rem;
}
.form-field--checkbox input {
  width: auto;
  margin-top: .2rem;
  flex-shrink: 0;
}
.form-field--checkbox label {
  font-weight: normal;
}
.button {
  display: inline-block;
  padding: .7rem 1.6rem;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  align-self: flex-start;
  transition: background .15s;
}
.button:hover {
  background: var(--color-accent-dark);
}
.alert {
  padding: 1rem 1.25rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}
.alert--success {
  background: #d4edda;
  color: #155724;
}
.alert--error {
  background: #f8d7da;
  color: #721c24;
}
.alert--error ul {
  padding-left: 1.25rem;
}
.alert--error li {
  list-style: disc;
}
.kontakt-liste {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.oeffnungszeiten td {
  padding: .25rem .75rem .25rem 0;
}

/* Hero */
.hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 4rem;
  background: var(--color-light);
  min-height: 380px;
  display: flex;
  align-items: flex-end;
}
.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 100%);
  width: 100%;
  color: var(--color-white);
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: .75rem;
}
.hero-content p {
  font-size: 1.1rem;
  opacity: .9;
  margin-bottom: 1.5rem;
  max-width: 40rem;
}
.hero-content .button {
  background: var(--color-white);
  color: var(--color-accent);
}
.hero-content .button:hover {
  background: var(--color-light);
}

/* Ohne Hero-Bild */
.hero:not(:has(img)) .hero-content {
  background: none;
  color: var(--color-text);
  padding: 3rem 2.5rem;
}
.hero:not(:has(img)) .hero-content h1 {
  color: var(--color-text);
}
.hero:not(:has(img)) .hero-content p {
  opacity: 1;
  color: var(--color-grey);
}
.hero:not(:has(img)) .hero-content .button {
  background: var(--color-accent);
  color: var(--color-white);
}

/* Seitenintro */
.intro {
  margin-bottom: 3rem;
}
.intro h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.2;
  margin-bottom: .75rem;
}
.intro p {
  font-size: 1.1rem;
  color: var(--color-grey);
  max-width: 42rem;
}

/* Teaser-Abschnitt */
.teaser {
  background: var(--color-light);
  border-radius: var(--radius);
  padding: 3rem;
  margin: 3rem 0;
}
.teaser h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}
.teaser p {
  color: var(--color-grey);
  margin-bottom: 1.5rem;
  max-width: 40rem;
}

/* Leistungen */
.leistungen-liste {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  margin-top: 1rem;
}
.leistung {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}
.leistung img {
  width: 3rem;
  height: 3rem;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
}
.leistung h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .5rem;
  letter-spacing: -.01em;
}
.leistung p {
  color: var(--color-grey);
  font-size: .95rem;
  line-height: 1.6;
}

/* Referenzen */
.referenzen-liste {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
}
.referenz {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-white);
  box-shadow: var(--shadow);
}
.referenz img {
  height: 12rem;
  object-fit: cover;
}
.referenz h2,
.referenz p {
  padding: 0 1.5rem;
}
.referenz h2 {
  font-size: 1.05rem;
  font-weight: 700;
  padding-top: 1.25rem;
  padding-bottom: .25rem;
}
.referenz p {
  color: var(--color-grey);
  font-size: .9rem;
  padding-bottom: 1.25rem;
}

/* OpenStreetMap */
.osm-karte {
  margin-top: 3rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.osm-karte iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}
.osm-karte a {
  display: block;
  padding: .5rem .75rem;
  font-size: .85rem;
  color: var(--color-grey);
  text-align: right;
  background: var(--color-light);
}
.osm-karte a:hover {
  color: var(--color-accent);
}

/* Footer */
.footer {
  margin-top: 6rem;
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--color-border);
  font-size: .9rem;
  color: var(--color-grey);
}
.footer h2 {
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-grey);
  margin-bottom: 1rem;
}
.footer ul {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.footer a:hover {
  color: var(--color-accent);
}

