html {
  background: linear-gradient(to bottom, gray, silver);
  background-attachment: fixed;
  width: 100vw;
  min-height: 100vh;
  margin: 0;
}

body {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14pt;
  position: relative;
}

/* Änderung */
.content {
  background: white;
  padding: 2rem; /* Text innenabstand */
  width: 100vw;
  box-sizing: border-box;
  border: 1px solid black;
  border-radius: 1rem;
  z-index: 3;
  position: relative;
  margin: auto;
}

footer {
  width: 100%;
  padding: 1rem;
  text-align: center;
  color: #666;
  font-size: 12pt;
  background: transparent;
  pointer-events: none;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 2;
}
footer a {
  pointer-events: auto;
}

h1 {
  font-size: 30pt;
  text-align: center;
  background: -webkit-linear-gradient(black, silver);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
}
h2 {
  font-size: 25pt;
  text-align: center;
  background: -webkit-linear-gradient(silver, black);
  -webkit-text-fill-color: transparent;
  -webkit-background-clip: text;
}
h3 {
  font-size: 18pt;
  color: gray;
  text-align: justify;
}

.content p {
  text-align: justify;
  hyphens: auto;
}

/* === Akkordeon / Details === */
details {
  margin-top: 1.5rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  background-color: #f9f9f9;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  overflow: hidden;
}

summary {
  font-weight: bold;
  cursor: pointer;
  font-size: 18pt;
  color: #333;
  padding: 0rem;
  list-style: none;
  display: flex;
  align-items: center;
/*  gap: 0.5rem; */
}

summary::before {
  content: "▶";
  display: inline-block;
  transition: transform 0.7s ease;
  font-size: 18pt;
  color: #555;
}

details[open] summary::before {
  transform: rotate(90deg);
}

details[open] summary {
  color: #007acc;
}

details p {
  padding: 0;
  margin: 0;
}

.details-content {
  overflow: hidden;
  height: 0;
  transition: height 1s ease; /* jetzt 1 Sekunde */
}

/* === Kontaktformular === */
.kontaktformular {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: flex;
  flex-direction: column;
}

.kontaktformular input,
.kontaktformular textarea {
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border: 1px solid black;
  border-radius: 0.5rem;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3);
  font-family: inherit;
  resize: vertical;
  color: black;
}

.kontaktformular input::placeholder,
.kontaktformular textarea::placeholder {
  color: gray;
}

.kontaktformular label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0.3rem;
}

.kontaktformular input[type="checkbox"] {
  transform: scale(2);
  margin-left: 0.2rem;
  flex-shrink: 0;
}

.kontaktformular input[type="number"] {
  font-size: 1.5rem;
  padding: 0.6rem 1rem;
  width: 100px;
  height: 50px;
  box-sizing: border-box;
  border: 1px solid black;
  border-radius: 0.5rem;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.3);
}

.kontaktformular button {
  background: linear-gradient(to right, #333, #aaa);
  color: white;
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 0.7rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background 0.3s ease, transform 0.2s ease;
  align-self: flex-start;
}

.kontaktformular button:hover {
  background: linear-gradient(to right, #000, #888);
  transform: translateY(-2px);
}
.portrait {
  float: right;
  shape-outside: url("png/michael_gries.png"); /* nutzt Alpha-Kanal für Textfluss */
  shape-margin: 0px; /* Abstand des Texts zur Bildkontur */
  margin-left: 1rem; /* Abstand links zum Text */
  margin-right: 0rem;
  margin-bottom: 0rem;
}
.portrait img {
  display: block;
  max-width: 300px; /* ggf. anpassen */
  height: auto;
}

/* Blocksatz für diesen Abschnitt deaktivieren */
.portrait + * {
  text-align: left;
  hyphens: auto;
}
.wochentage {
  border: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wochentage legend {
  font-weight: bold;
  margin-bottom: 6px;
}

.wochentage label {
  display: inline-block;
  padding: 8px 14px;
  border: 2px solid #007BFF;
  border-radius: 6px;
  cursor: pointer;
  background-color: white;
  color: #007BFF;
  font-size: 14px;
  user-select: none;
  transition: all 0.2s ease;
}

.wochentage input[type="checkbox"] {
  display: none;
}

.wochentage input[type="checkbox"]:checked + label,
.wochentage label:has(input[type="checkbox"]:checked) {
  background-color: #007BFF;
  color: white;
  border-color: #0056b3;
}
/* === RESPONSIVE DESIGN === */
@media only screen and (min-width: 1120px) {
  /* Desktop */
  .content {
    width: 80vw;
    max-width: 1200px;
    box-shadow:
    10px 0 15px -5px rgba(0, 0, 0, 0.3),   /* rechts */
    0 10px 15px -5px rgba(0, 0, 0, 0.3),   /* unten */
    10px 10px 20px -5px rgba(0, 0, 0, 0.4); /* rechte untere Ecke */  }
}

@media only screen and (min-width: 770px) and (max-width: 1120px) {
  /* iPad */
  body { font-size: 14pt; }
  .content {
    width: 90vw;
    box-shadow:
    10px 0 15px -5px rgba(0, 0, 0, 0.3),   /* rechts */
    0 10px 15px -5px rgba(0, 0, 0, 0.3),   /* unten */
    10px 10px 20px -5px rgba(0, 0, 0, 0.4); /* rechte untere Ecke */    border-radius: 1rem;
  }
}

@media only screen and (max-width: 770px) {
  /* iPhone */
  body { font-size: 12pt; padding: 0rem; }
  .content {
    width: 100vw;
    padding: 0;
    margin: 0;
    border: 0rem;
    border-radius: 1rem; /* abgerundete Ecken beibehalten */
    box-shadow: none;    /* kein Schatten auf iPhone */
  }
  h1 { font-size: 20pt; }
  h2 { font-size: 15pt; }
  summary { font-size: 14pt; }
  .kontaktformular input,
  .kontaktformular textarea { font-size: 0.9rem; padding: 0.5rem; }
  .kontaktformular button { font-size: 0.9rem; padding: 0.6rem 1rem; }
.portrait img {
  display: block;
  max-width: 30vw; /* ggf. anpassen */
  height: auto;
}
}