/* Nachbau der IONOS-MyWebsite-Visitenkarte (Stand 2026-11-13), Maße am Original gemessen. */
@font-face {
  font-family: "Roboto";
  src: url("/fonts/roboto-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --text: rgba(112, 112, 112, .9);
  --heading: #535353;
  --field: #f2f2f2;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 16px/1.25 Roboto, Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: 940px; margin: 0 auto; padding: 0 20px; }

/* ---------- Kopfbereich ---------- */
.header {
  position: relative;
  min-height: 350px;
  background: #2f2d2d url("/images/header-1920.jpg") 50% 0 / cover no-repeat;
  color: #fff;
  text-align: center;
  padding: 95px 0 74px;
}
@media (max-width: 900px) {
  .header { background-image: url("/images/header-900.jpg"); }
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
}
.header::after {           /* kleine weiße Spitze unten mittig */
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  background: #fff;
  transform: rotate(45deg);
}
.header .container { position: relative; z-index: 1; }
.header h1 {
  margin: 0;
  font: 400 55px/1.16 Arial, Helvetica, sans-serif;
  overflow-wrap: break-word;
}
.header .claim {
  margin: 40px 0 0;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .25);
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  font-size: 24px;
  line-height: 35px;
}

/* ---------- Inhalt ---------- */
.content { padding: 36px 0 50px; }
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 40px;
  grid-template-areas:
    "form    map"
    "contact map";
  align-items: start;
}
.area-form    { grid-area: form; }
.area-contact { grid-area: contact; margin-top: 26px; }
.area-map     { grid-area: map; }

h2 {
  margin: 0 0 26px;
  color: var(--heading);
  font: 400 32px/40px Arial, Helvetica, sans-serif;
}

/* Formular */
.form input[type="text"],
.form input[type="email"],
.form textarea {
  display: block;
  width: 100%;
  margin: 0 0 20px;
  padding: 10px;
  border: 0;
  border-radius: 0;
  background: var(--field);
  color: var(--text);
  font: 16px/19px Roboto, Arial, Helvetica, sans-serif;
}
.form textarea { height: 125px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: rgba(112, 112, 112, .9); opacity: 1; }
.form input:focus, .form textarea:focus { outline: 2px solid #bdbdbd; outline-offset: 0; }
.consent {
  position: relative;
  display: block;
  padding-left: 28px;
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 16px;
}
.consent input { position: absolute; left: 4px; top: 3px; margin: 0; }
.honeypot { display: none !important; }
.form button {
  padding: 10px;
  border: 0;
  border-radius: 0;
  background: #000;
  color: #fff;
  font: 16px/19px Roboto, Arial, Helvetica, sans-serif;
  cursor: pointer;
}
.form button:hover { background: #333; }

/* Kontaktinformationen */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li a,
.contact-list li span {
  display: block;
  padding: 10px 0 10px 30px;
  line-height: 20px;
  background-repeat: no-repeat;
}
.contact-list .phone { background-image: url("/images/icon-phone.svg"); background-position: 0 11px; }
.contact-list .mail  { background-image: url("/images/icon-mail.svg");  background-position: 0 13px; }

/* Anfahrt */
.map { position: relative; display: block; line-height: 0; }
.map img { width: 100%; height: 300px; object-fit: cover; }
.map .attribution {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 2px 5px;
  background: rgba(255, 255, 255, .8);
  color: #333;
  font-size: 11px;
  line-height: 14px;
}
.address { margin: 14px 0 0; line-height: 22px; }

/* Fußzeile (neu: Impressum & Datenschutz) */
.footer {
  border-top: 1px solid #ececec;
  padding: 18px 0 24px;
  font-size: 14px;
}
.footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; }
.footer nav { display: flex; gap: 20px; }

/* Unterseiten (Impressum, Datenschutz, Danke) */
.header.small { min-height: 0; padding: 40px 0 44px; }
.header.small h1 { font-size: 40px; }
.header.small a:hover { text-decoration: none; }
.prose { line-height: 1.55; }
.prose h2 { font-size: 26px; line-height: 32px; margin: 32px 0 10px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 12px; }
.prose a { text-decoration: underline; }

/* ---------- Mobil (wie im Original: Kontakt zuerst, dann Formular, dann Anfahrt) ---------- */
@media (max-width: 767px) {
  .header { padding: 70px 0 60px; }
  .header h1 { font-size: 44px; }
  .header .claim { font-size: 17px; line-height: 35px; margin-top: 30px; }
  .grid {
    grid-template-columns: 1fr;
    grid-template-areas: "contact" "form" "map";
  }
  .area-contact { margin-top: 0; margin-bottom: 26px; }
  .area-map { margin-top: 36px; }
  h2 { font-size: 32px; }
  .header.small h1 { font-size: 32px; }
}
.todo { background: #fff3c4; outline: 2px dashed #c9a400; padding: 0 4px; }
