/* Smartphone layout for the public KFK site. */
.hero .section__body > p:last-child .hero__mobile-cta,
.kennenlernen__next {
  display: none;
}

@media (max-width: 760px), (max-width: 980px) and (max-height: 540px) and (pointer: coarse) {
  :root {
    --mobile-gutter: clamp(1.125rem, 5.65vw, 2rem);
    --header-height: 4rem;
    --content: min(38rem, calc(100% - 2 * var(--mobile-gutter)));
  }

  body {
    font-size: 1rem;
    line-height: 1.64;
  }

  .site-header {
    height: var(--header-height);
  }

  .site-header__inner {
    width: var(--content);
  }

  .brand {
    gap: .65rem;
    min-height: 2.75rem;
  }

  .brand__sun {
    width: 2rem;
    height: 2rem;
    flex: 0 0 2rem;
  }

  .brand__name {
    font-size: .75rem;
  }

  .brand__name small {
    color: #b6aaa0;
  }

  .nav-toggle {
    min-height: 2.75rem;
    gap: .65rem;
    font-size: .75rem;
  }

  .site-nav {
    top: 100%;
    max-height: calc(100dvh - var(--header-height));
    overflow: auto;
    padding: .35rem var(--mobile-gutter) .85rem;
    box-shadow: 0 14px 24px #12100d42;
  }

  .site-nav a {
    display: flex;
    min-height: 3.15rem;
    align-items: center;
    padding: .6rem 0;
    color: #e8dfd7;
    font-size: .875rem;
  }

  .site-nav a.is-active {
    color: #fff5e9;
    border-bottom-color: #baa796;
  }

  #inhalt > .section:not(.hero) .section__inner {
    padding-block: clamp(3.15rem, 12vw, 5.25rem);
  }

  #inhalt .section__eyebrow {
    font-size: .75rem;
    letter-spacing: .075em;
  }

  #inhalt .section__title:not(.section__title--event) {
    max-inline-size: 100%;
    margin-top: .9rem !important;
    font-size: clamp(2.125rem, 8.6vw, 3.5rem) !important;
    line-height: 1.13 !important;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .section__body > :is(p,blockquote) {
    max-inline-size: 100%;
    overflow-wrap: break-word;
  }

  .hero,
  .hero__inner {
    min-height: 0;
  }

  .hero__inner {
    padding: clamp(2.75rem, 9vw, 4.5rem) 0 clamp(2.9rem, 10vw, 4.5rem);
  }

  .hero .section__eyebrow {
    display: none;
  }

  .hero .material-photo {
    inset: 0 -24% 0 24%;
    opacity: .61;
  }

  .hero::after {
    background: linear-gradient(110deg, #26231ff2, #26231fc4 62%, #26231f58);
  }

  .hero h1 {
    width: 100%;
    max-width: 35rem;
    margin: .9rem 0 0;
    font-size: clamp(2.7rem, 10.2vw, 4.1rem);
    line-height: 1.08;
    text-wrap: balance;
  }

  .hero .section__body > p:first-child {
    width: min(100%, 32rem);
    margin: 1.25rem 0 0;
    color: #ddd2c7;
    font-size: clamp(1.02rem, 4.3vw, 1.18rem);
    line-height: 1.55;
  }

  .hero .section__body > p:nth-child(2) {
    margin: 1.1rem 0 0;
    color: #c5b7aa;
  }

  .hero .section__body > p:last-child {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 1rem;
    row-gap: .35rem;
    margin: 1.55rem 0 0;
  }

  .hero .section__body > p:last-child a {
    gap: .55rem;
    min-height: 2.875rem;
    font-size: .75rem;
  }

  .hero .section__body > p:last-child a::before {
    width: 1.05rem;
    height: 1px;
  }

  .hero .section__body > p:last-child .hero__mobile-cta {
    display: inline-flex;
    justify-content: center;
    padding-inline: .95rem;
    border: 1px solid #e5d5c6;
    border-radius: 5px;
    background: #e5d5c6;
    color: #282522;
    font-size: .875rem;
  }

  .hero .section__body > p:last-child .hero__mobile-cta::before {
    display: none;
  }

  .hero .section__body > p:last-child .hero__mobile-cta:focus-visible {
    outline-color: #f4e7d9;
  }

  #inhalt .section--warum .section__body {
    margin-top: 1.25rem;
  }

  #inhalt .section--warum .section__body > p,
  #inhalt .section--kampf-ist-chaos .section__body > p:first-of-type,
  #inhalt .section--nach-kennenlernzeit .section__body > p:first-of-type {
    width: auto;
    margin-inline: 0;
    font-size: 1.04rem;
    line-height: 1.63;
  }

  #inhalt .section--warum .section__body > p:nth-child(2) {
    position: static;
    margin-top: 1.4rem;
  }

  #inhalt .section--warum blockquote {
    position: static;
    width: 100%;
    margin: 2rem 0 0;
    padding: .2rem 0 .2rem 1rem;
    border-top: 0;
    border-inline-start: 2px solid #8b796c70;
    font-size: clamp(1.8rem, 8vw, 2.75rem);
    line-height: 1.2;
  }

  #inhalt .section--warum blockquote em {
    max-width: 100%;
    margin-top: 1rem;
    font-size: .8rem;
    line-height: 1.45;
  }

  #inhalt .section--idee .section__body > p,
  #inhalt .section--kampf-ist-chaos .section__body > p,
  #inhalt .section--begleitung .section__body > p {
    width: auto;
    margin: 1.25rem 0 0;
    word-spacing: normal;
  }

  #inhalt .section--idee ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    gap: .45rem;
    margin: 1.55rem 0 0;
  }

  #inhalt .section--idee ol li {
    width: auto;
    height: auto;
    min-height: 4.5rem;
    padding: .65rem;
    font-size: clamp(1.02rem, 4.8vw, 1.4rem);
  }

  #inhalt .section--harte-arbeit ol {
    width: 100%;
    margin: 1.6rem 0 0;
  }

  #inhalt .section--harte-arbeit ol li {
    height: auto;
    min-height: 0;
    padding: .8rem 0 .8rem 2rem;
    font-size: 1rem;
    line-height: 1.5;
  }

  #inhalt .section--harte-arbeit blockquote,
  #inhalt .section--kampf-ist-chaos blockquote {
    width: 100%;
    margin: 1.75rem 0 0;
    padding: 1.05rem 0 0;
    font-size: clamp(1.55rem, 6.9vw, 2.4rem);
    line-height: 1.3;
  }

  #inhalt .section--kampf-ist-chaos blockquote strong {
    display: block;
    width: auto;
    margin: .6rem 0 0;
    font-size: inherit;
    transform: none;
  }

  #inhalt .table-wrap {
    width: 100%;
    margin-top: 1.5rem;
    overflow: visible;
  }

  #inhalt .table-wrap table {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border-spacing: 0;
  }

  #inhalt .table-wrap table::before {
    content: none;
  }

  #inhalt .table-wrap thead {
    position: absolute;
    display: table-header-group;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  #inhalt .table-wrap :is(tbody,tr,td) {
    display: block;
    width: 100%;
  }

  #inhalt .table-wrap td {
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 1rem 0;
    font-size: 1rem;
    line-height: 1.55;
  }

  #inhalt .table-wrap td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: .3rem;
    color: inherit;
    font-family: var(--sans);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .035em;
  }

  #inhalt :is(.section--unterricht, .section--begleitung, .section--nach-kennenlernzeit) .table-wrap td {
    margin-bottom: .7rem;
    padding: .95rem 1rem;
    border: 1px solid #b29f8a65;
    border-radius: 5px;
  }

  #inhalt .section--unterricht .table-wrap td {
    color: #ebe0d6;
  }

  #inhalt .section--begleitung .section__body {
    display: block;
  }

  .kennenlernen__next {
    display: inline-flex;
    min-height: 2.875rem;
    align-items: center;
    gap: .6rem;
    margin-top: .65rem;
    color: #564333;
    font-size: .92rem;
    font-weight: 700;
  }

  #naechste-kennenlernzeit {
    scroll-margin-top: .65rem;
  }

  #inhalt .section--kennenlernen .section__body > .section__kicker,
  #inhalt .section--nach-kennenlernzeit .table-wrap ~ .section__kicker {
    margin-top: 1rem;
  }

  #inhalt .section--gemeinschaft .section__body > p:last-child,
  #inhalt .section--unterricht .section__body > p:last-of-type {
    margin-top: 1.25rem;
    padding-top: .85rem;
    font-size: 1.12rem;
  }

  #inhalt .section--unterricht .section__body > p:last-of-type strong {
    display: inline;
    margin: 0;
  }

  .content-panel--event {
    display: flex;
    flex-direction: column;
    margin-top: 1.8rem;
    padding: clamp(1rem, 4.2vw, 1.6rem);
  }

  #inhalt .content-panel--event .section__title--event {
    margin: 0 !important;
    font-size: .78rem !important;
  }

  #inhalt .content-panel--event > p:nth-of-type(1) {
    margin-top: .65rem;
    font-size: clamp(1.65rem, 7vw, 2.35rem);
  }

  #inhalt .content-panel--event > p:not(:first-of-type) {
    margin-top: .75rem;
  }

  #inhalt .content-panel--event > p:nth-of-type(4) {
    order: 2;
    padding-top: .85rem;
    border-top: 1px solid #8b796c38;
    font-size: 1.16rem;
  }

  #inhalt .content-panel--event > .cta {
    order: 1;
    margin-top: 1rem;
  }

  #inhalt .content-panel--event > p:nth-of-type(5) {
    order: 3;
  }

  #inhalt .content-panel--event .cta__link {
    width: 100%;
    padding-inline: .85rem;
    color: #f6eade;
    background: #2b2825;
    font-size: .82rem;
  }

  #inhalt .section--werte ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .3rem .85rem;
    margin-top: 1.15rem;
  }

  #inhalt .section--werte li {
    height: auto;
    min-height: 3.4rem;
    font-size: clamp(1.15rem, 5.4vw, 1.75rem);
  }

  #inhalt a.email-link {
    max-width: 100%;
    font-size: clamp(.98rem, 5vw, 1.25rem);
    overflow-wrap: anywhere;
  }

  .site-footer,
  .site-footer__inner {
    min-height: 0;
  }

  .site-footer__inner {
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .4rem 1rem;
    padding-block: 1rem;
  }

  .site-footer__inner a {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
  }

  .inquiry-dialog {
    width: min(32rem, calc(100% - 1.25rem));
    max-height: calc(100dvh - 1.25rem);
    overscroll-behavior: contain;
  }

  .inquiry-dialog__panel {
    padding: 2.1rem clamp(.85rem, 4vw, 1.35rem) 1.3rem;
  }

  .inquiry-dialog__close {
    top: .35rem;
    right: .4rem;
    width: 2.75rem;
    height: 2.75rem;
  }

  .inquiry-dialog h2 {
    margin-top: .65rem;
    font-size: clamp(1.85rem, 8.6vw, 2.5rem);
  }

  .inquiry-dialog__period {
    margin-top: .45rem;
  }

  .inquiry-form {
    margin-top: 1.2rem;
  }

  .inquiry-form > input[type="email"] {
    font-size: 1.0625rem;
  }

  .inquiry-form__submit {
    width: 100%;
    margin-top: 1rem;
    font-size: .8rem;
  }

  .inquiry-form__privacy {
    margin-top: .75rem;
    font-size: .76rem;
  }
}
