/* Layout von schepmann.de, ergänzt templatemo-style.css (Farben und Schriften von dort) */

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-size: 15px; }
p { font-size: 15px; line-height: 1.7; }

/* Navigation */
.custom-navbar .navbar-nav.navbar-nav-first { margin-left: 4em; }
@media screen and (max-width: 1170px) { .custom-navbar .navbar-nav.navbar-nav-first { margin-left: inherit; } }

/* Abschnitte */
section { padding: 80px 0; }
.bg-soft { background: #f9f9f9; }
.kicker { color: #006622; text-transform: uppercase; letter-spacing: .13em; font-size: 12px; font-weight: 700; margin: 0 0 10px; font-family: 'Muli', sans-serif; }
section h2 { margin-top: 0; padding-bottom: 0; margin-bottom: 18px; }
.intro { font-size: 17px; max-width: 800px; }

/* Hero */
#hero { padding: 70px 0 80px; border-bottom: 1px solid #f0f0f0; }
#hero h1 { margin: 0 0 22px; font-size: 3.4em; line-height: 1.1; }
#hero .lead-text { font-size: 19px; color: #575757; max-width: 680px; margin-bottom: 30px; }
.portrait { width: 100%; height: auto; max-width: 320px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 28%; border-top: 5px solid #006622; box-shadow: 0 1px 30px rgba(0,0,0,.06); }
.hero-row { display: flex; flex-wrap: nowrap; align-items: center; }
@media only screen and (max-width: 767px) { .hero-row { display: block; } }
.hero-row:before, .hero-row:after { display: none; }

/* Buttons im Stil von .section-btn, aber grün */
.btn-green, .btn-green-outline { display: inline-block; border-radius: 50px; border: 1px solid #006622; padding: 13px 28px; margin: 0 8px 10px 0; font-weight: 700; transition: .5s; }
.btn-green { background: #006622; color: #fff; }
.btn-green:hover, .btn-green:focus { background: #252020; border-color: #252020; color: #fff; }
.btn-green-outline { background: #fff; color: #006622; }
.btn-green-outline:hover, .btn-green-outline:focus { background: #006622; color: #fff; }

/* Profil */
.statement { background: #f9f9f9; border-left: 5px solid #006622; padding: 24px 26px; margin-bottom: 20px; }
.statement p { margin: 0; font-size: 17px; color: #454545; font-style: italic; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.fact { background: #fff; border: 1px solid #f0f0f0; box-shadow: 0 1px 30px rgba(0,0,0,.06); padding: 18px; }
.fact strong { display: block; color: #006622; font-family: 'Muli', sans-serif; font-size: 26px; line-height: 1.2; }
.fact span { display: block; color: #757575; font-size: 13px; margin-top: 5px; }

/* Stichwort über Karten/Kacheln und grüne Textlinks, überall gleich */
.card-tag { display: block; color: #006622; font-family: 'Muli', sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.text-link, .profile-link a, .channel-link { color: #006622; font-weight: 700; }
.text-link:hover, .profile-link a:hover, .channel-link:hover, .channel-alt:hover { color: #252020; }
.note { margin-top: 24px; }

/* Karten (Kompetenzen, Praxis, Zusammenarbeit) */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 30px; }
.card { background: #fff; border: 1px solid #f0f0f0; border-top: 5px solid #006622; box-shadow: 0 1px 30px rgba(0,0,0,.06); padding: 26px; }
.card h3 { font-size: 19px; margin: 0 0 10px; }
.card p { margin: 0; }
.card .card-tag { margin-bottom: 10px; }
.pills { margin-top: 24px; }
.pills span { display: inline-block; background: #006622; color: #fff; border-radius: 50px; padding: 5px 14px; margin: 0 6px 8px 0; font-size: 13px; }

/* Arbeitsweise (dunkel wie der Footer) */
.bg-dark { background: #252020; }
.bg-dark h2, .bg-dark h3 { color: #fff; }
.bg-dark .kicker { color: #8dc49b; }
.bg-dark p { color: #d9d9d9; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 30px; }
.principle { border-top: 1px solid #575757; padding-top: 18px; }
.principle h3 { font-size: 19px; margin: 0 0 8px; }
.principle p { color: #909090; margin: 0; }

/* Kontakt: gleiches Zweispalten-Raster wie OpenPGP/S-MIME */
.contact-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; }
.contact-panel { background: #f9f9f9; border-top: 5px solid #006622; box-shadow: 0 1px 30px rgba(0,0,0,.06); padding: 30px 34px; }
.contact-panel p { margin: 0; max-width: 620px; }
.contact-panel .profile-link { margin-top: 16px; }
.profile-link .fa { color: #006622; }
/* Kontaktwege: drei Zeilen untereinander, zusammen so hoch wie der Textkasten */
.channels { display: grid; grid-auto-rows: 1fr; gap: 12px; }
.channel { background: #fff; border: 1px solid #f0f0f0; border-left: 5px solid #006622; box-shadow: 0 1px 30px rgba(0,0,0,.06); padding: 14px 26px 14px 22px;
	display: grid; grid-template-columns: 44px 1fr auto; grid-template-rows: auto auto; column-gap: 20px; align-items: center; justify-items: start; }
.channel-icon { grid-column: 1; grid-row: 1 / span 2; background: #006622; color: #fff; border-radius: 100%; width: 44px; height: 44px; line-height: 44px; text-align: center; font-size: 19px; }
.channel .card-tag { grid-column: 2; grid-row: 1; align-self: end; margin: 0; }
.channel h3 { grid-column: 2; grid-row: 2; align-self: start; font-size: 17px; margin: 0; }
.channel-link { grid-column: 3; grid-row: 1 / span 2; justify-self: end; font-size: 14px; white-space: nowrap; }
.channel-link:not(:last-child) { grid-row: 1; align-self: end; }
.channel-alt { grid-column: 3; grid-row: 2; justify-self: end; align-self: start; color: #757575; font-size: 13px; white-space: nowrap; }
/* OpenPGP / S/MIME */
.crypto-item { background: #fff; border: 1px solid #f0f0f0; box-shadow: 0 1px 30px rgba(0,0,0,.06); padding: 22px 26px; }
.crypto-item .card-tag { margin-bottom: 8px; }
.crypto-item code { display: block; background: none; color: #454545; padding: 0; font-size: 14px; word-break: break-word; margin-bottom: 10px; }
.crypto-item .text-link { margin-right: 14px; }
.copy-btn { background: #fff; border: 1px solid #006622; color: #006622; border-radius: 50px; padding: 3px 12px; font-size: 13px; }
.copy-btn:hover, .copy-btn.done { background: #006622; color: #fff; }

/* Rechtsseite (agb.html) */
#legal-head { padding: 70px 0 60px; border-bottom: 1px solid #f0f0f0; }
#legal-head h1 { margin: 0 0 26px; font-size: 3em; line-height: 1.1; }
.cards-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.card .legal-sub { margin-top: 14px; }
.legal { max-width: 820px; margin-top: 10px; }
.legal-h2 { margin-top: 50px; }
.legal h3 { font-size: 19px; margin: 34px 0 10px; }
.legal p { margin-bottom: 12px; }
.legal ul { padding-left: 20px; margin-bottom: 12px; }
.legal li { margin-bottom: 2px; color: #757575; }
.legal .statement { margin: 4px 0 16px; }
.legal .statement p { font-style: normal; margin: 0; }
.legal a.text-link { word-break: break-word; }
.legal-source { margin-top: 40px; font-size: 13px; }

/* Projektseiten (projekte.html, projekt-*.html) */
.page-head { padding: 70px 0 60px; border-bottom: 1px solid #f0f0f0; }
.page-head h1 { margin: 0 0 22px; font-size: 3em; line-height: 1.1; }
.page-head .intro { margin-bottom: 26px; }
.panel-actions { margin-top: 22px; }
.jump-links a { display: inline-block; border: 1px solid #006622; color: #006622; border-radius: 50px; padding: 5px 14px; margin: 0 6px 8px 0; font-size: 13px; font-weight: 700; }
.jump-links a:hover { background: #006622; color: #fff; }
.project-grid:before, .project-grid:after { display: none; } /* Bootstrap-Clearfix stört das Grid */
.project-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 40px; align-items: start; }
.project-grid .intro { margin-bottom: 16px; }
.project-grid .btn-green { margin-top: 12px; }
.feature-box { background: #fff; border: 1px solid #f0f0f0; border-top: 5px solid #006622; box-shadow: 0 1px 30px rgba(0,0,0,.06); padding: 24px 26px; }
.feature-box .card-tag { margin-bottom: 12px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 26px; margin-bottom: 9px; color: #757575; line-height: 1.6; }
.check-list li:before { content: "\f00c"; font-family: FontAwesome; color: #006622; position: absolute; left: 0; top: 0; }
.feature-box .pills { margin-top: 18px; }
.check-list code { background: #edf3ee; color: #145c2b; padding: 1px 5px; border-radius: 3px; font-size: 13px; }
.pills.pills-light span { background: #edf3ee; color: #145c2b; }
.back-link { display: inline-block; margin-bottom: 18px; }

/* Footer, kompakt */
footer { padding: 30px 0; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px; color: #909090; font-size: 14px; }
footer a:hover { color: #fff; }

@media only screen and (max-width: 1199px) {
	.contact-panel, .channels { grid-column: 1 / -1; }
	.channels { grid-auto-rows: auto; }
}
@media only screen and (max-width: 991px) {
	#hero .portrait { margin-top: 30px; }
	.footer-row { flex-direction: column; gap: 4px; }
	.cards-3 { grid-template-columns: 1fr; }
	.project-grid { grid-template-columns: 1fr; gap: 24px; }
}
/* Tablet und kleiner Laptop: Telefonnummer in der Navigation ausblenden, sonst bricht die Leiste zweizeilig um */
@media only screen and (min-width: 768px) and (max-width: 1199px) {
	.custom-navbar .navbar-nav.navbar-right { display: none; }
}
@media only screen and (max-width: 767px) {
	section { padding: 55px 0; }
	#hero { padding: 40px 0 50px; }
	#hero h1 { font-size: 2.3em; }
	.portrait { max-width: 240px; }
	.cards, .cards-3, .principles, .facts { grid-template-columns: 1fr; }
	#legal-head { padding: 40px 0; }
	#legal-head h1 { font-size: 2.3em; }
	.page-head { padding: 40px 0; }
	.page-head h1 { font-size: 2.3em; }
	.contact-panel { padding: 24px; }
	.channel { grid-template-columns: 44px 1fr; grid-template-rows: none; column-gap: 14px; padding: 16px; }
	.channel-icon { grid-row: 1 / span 4; }
	.channel .card-tag { grid-row: 1; }
	.channel h3 { grid-row: 2; }
	.channel-link, .channel-link:not(:last-child) { grid-column: 2; grid-row: 3; justify-self: start; align-self: start; }
	.channel-alt { grid-column: 2; grid-row: 4; justify-self: start; }
	.contact-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Bildergalerie (Projektseiten): ein Bild sichtbar, Weiterschalten über die linke/rechte Bildhälfte */
.note-small { color: #757575; font-size: 13px; margin: -8px 0 0; }
.shots { margin-top: 26px; outline: none; }
.shots:focus-visible .shots-stage { box-shadow: 0 0 0 3px #8dc49b, 0 1px 30px rgba(0,0,0,.06); }
.shots-stage { position: relative; background: #fff; border: 1px solid #f0f0f0; border-top: 5px solid #006622; box-shadow: 0 1px 30px rgba(0,0,0,.06); }
.shot { display: none; margin: 0; }
.shot.is-active { display: block; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 14px 22px; border-top: 1px solid #f0f0f0; font-size: 15px; line-height: 1.6; }
.shot figcaption strong { color: #006622; }
/* Klickflächen: je eine Bildhälfte (ohne Bildunterschrift), Pfeil erscheint beim Darüberfahren */
.shots-nav { position: absolute; top: 0; width: 50%; aspect-ratio: .8; /* Hälfte eines 16:10-Bildes */ border: 0; padding: 0 18px; background: transparent; color: #fff; font-size: 22px; cursor: pointer; display: flex; align-items: center; }
.shots-prev { left: 0; justify-content: flex-start; cursor: w-resize; }
.shots-next { right: 0; justify-content: flex-end; cursor: e-resize; }
.shots-nav i { display: inline-block; width: 46px; height: 46px; line-height: 46px; text-align: center; border-radius: 100%; background: rgba(0,102,34,.85); opacity: .35; transition: opacity .3s; }
.shots-nav:hover i, .shots-nav:focus-visible i { opacity: 1; }
.shots-nav:focus { outline: none; }
.shots-count { margin: 12px 0 0; text-align: center; color: #757575; font-size: 13px; font-weight: 700; letter-spacing: .1em; }
@media only screen and (max-width: 767px) {
	.shots-nav { padding: 0 8px; font-size: 16px; }
	.shots-nav i { width: 34px; height: 34px; line-height: 34px; }
	.shot figcaption { padding: 12px 14px; font-size: 14px; }
}
